Detailed Description
Class Time that implements a stopwatch based on either cpu time or wall clock time.
Definition at line 25 of file Time.h.
List of all members.
Constructor & Destructor Documentation
CTime |
( |
bool |
start = true |
) |
|
constructor
- Parameters:
-
| start | if time measurement shall be started |
Definition at line 17 of file Time.cpp.
Member Function Documentation
clock_t cur_runtime |
( |
bool |
verbose = false |
) |
|
get current cpu runtime
- Parameters:
-
| verbose | if time shall be printed |
- Returns:
- current cpu runtime
Definition at line 32 of file Time.cpp.
clock_t cur_runtime_diff |
( |
bool |
verbose = false |
) |
|
get time difference between start and NOW
- Parameters:
-
| verbose | if time difference shall be printed |
- Returns:
- time difference between start and NOW
Definition at line 40 of file Time.cpp.
float64_t cur_runtime_diff_sec |
( |
bool |
verbose = false |
) |
|
get time difference between start and NOW in seconds (wall clock time)
- Parameters:
-
| verbose | if time difference shall be printed |
- Returns:
- time difference between start and NOW in seconds
Definition at line 48 of file Time.cpp.
float64_t cur_time_diff |
( |
bool |
verbose = false |
) |
|
get time difference between start and NOW in seconds (wall clock time)
- Parameters:
-
| verbose | if time difference shall be printed |
- Returns:
- time difference between start and NOW in seconds
Definition at line 67 of file Time.cpp.
get current time in seconds
- Returns:
- current time in seconds
Definition at line 99 of file Time.h.
virtual const char* get_name |
( |
void |
|
) |
const [virtual] |
get runtime
- Returns:
- runtime
Definition at line 89 of file Time.h.
start the counter
- Parameters:
-
| verbose | if start time shall be printed |
- Returns:
- start time in seconds
Definition at line 58 of file Time.cpp.
stop the counter
- Parameters:
-
| verbose | if stop time shall be printed |
- Returns:
- stop time in seconds
Definition at line 85 of file Time.cpp.
float64_t time_diff_sec |
( |
bool |
verbose = false |
) |
|
get time difference between start and stop in seconds
- Parameters:
-
| verbose | if time difference shall be printed |
- Returns:
- time difference between start and stop in seconds
Definition at line 76 of file Time.cpp.
Member Data Documentation
start runtime
Definition at line 113 of file Time.h.
start time
Definition at line 116 of file Time.h.
stop time
Definition at line 118 of file Time.h.
The documentation for this class was generated from the following files: