Rcpp Version 0.12.14
Timer Class Reference

#include <Timer.h>

Public Member Functions

 Timer ()
 
void Start ()
 
void Stop ()
 
void Reset ()
 
double ElapsedTime ()
 
double CumulativeTime ()
 

Private Member Functions

double getFractionalSeconds (void)
 

Private Attributes

Function sys_time
 
double start_t
 
double end_t
 
double elapsed
 
double cumul
 

Detailed Description

Examples:
SugarPerformance/Timer.h, and SugarPerformance/Timertest.cpp.

Definition at line 31 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )
inline
Examples:
SugarPerformance/Timer.h.

Definition at line 33 of file Timer.h.

References Reset().

Here is the call graph for this function:

Member Function Documentation

◆ CumulativeTime()

double Timer::CumulativeTime ( )
inline
Examples:
SugarPerformance/Timer.h, and SugarPerformance/Timertest.cpp.

Definition at line 42 of file Timer.h.

References cumul.

Referenced by main().

◆ ElapsedTime()

double Timer::ElapsedTime ( )
inline
Examples:
SugarPerformance/Timer.h, and SugarPerformance/Timertest.cpp.

Definition at line 41 of file Timer.h.

References elapsed.

Referenced by main().

◆ getFractionalSeconds()

double Timer::getFractionalSeconds ( void  )
inlineprivate
Examples:
SugarPerformance/Timer.h.

Definition at line 49 of file Timer.h.

References sys_time.

Referenced by Start(), and Stop().

◆ Reset()

void Timer::Reset ( )
inline
Examples:
SugarPerformance/Timer.h, and SugarPerformance/Timertest.cpp.

Definition at line 40 of file Timer.h.

References cumul, elapsed, end_t, and start_t.

Referenced by main(), and Timer().

◆ Start()

void Timer::Start ( )
inline
Examples:
SugarPerformance/Timer.h, and SugarPerformance/Timertest.cpp.

Definition at line 34 of file Timer.h.

References getFractionalSeconds(), and start_t.

Referenced by main().

Here is the call graph for this function:

◆ Stop()

void Timer::Stop ( )
inline
Examples:
SugarPerformance/Timer.h, and SugarPerformance/Timertest.cpp.

Definition at line 35 of file Timer.h.

References cumul, elapsed, end_t, getFractionalSeconds(), and start_t.

Referenced by main().

Here is the call graph for this function:

Member Data Documentation

◆ cumul

double Timer::cumul
private
Examples:
SugarPerformance/Timer.h.

Definition at line 47 of file Timer.h.

Referenced by CumulativeTime(), Reset(), and Stop().

◆ elapsed

double Timer::elapsed
private
Examples:
SugarPerformance/Timer.h.

Definition at line 47 of file Timer.h.

Referenced by ElapsedTime(), Reset(), and Stop().

◆ end_t

double Timer::end_t
private
Examples:
SugarPerformance/Timer.h.

Definition at line 47 of file Timer.h.

Referenced by Reset(), and Stop().

◆ start_t

double Timer::start_t
private
Examples:
SugarPerformance/Timer.h.

Definition at line 47 of file Timer.h.

Referenced by Reset(), Start(), and Stop().

◆ sys_time

Function Timer::sys_time
private
Examples:
SugarPerformance/Timer.h.

Definition at line 46 of file Timer.h.

Referenced by getFractionalSeconds().


The documentation for this class was generated from the following file: