#include <AlpsTime.h>
Public Member Functions | |
AlpsTimer () | |
AlpsTimer (double lt) | |
~AlpsTimer () | |
void | reset () |
Reset. More... | |
void | start () |
Start to count times. More... | |
void | stop () |
Stop timer and computing times. More... | |
void | setLimit (double lm) |
double | getLimit () const |
double | getCpuTime () |
Get cpu timee. More... | |
double | getWallClock () |
Get cpu timee. More... | |
double | getTime () |
Get time depends on clock type. More... | |
int | getClockType () |
Get/Set clock type. More... | |
void | setClockType (int ct) |
bool | reachCpuLimit () |
Check if cpu time reach limit. More... | |
bool | reachWallLimit () |
Check if wallclock time reach limit. More... | |
Public Attributes | |
int | clockType_ |
double | limit_ |
Time limit. More... | |
double | startCpu_ |
double | startWall_ |
double | finishCpu_ |
double | finishWall_ |
double | cpu_ |
Cpu time. More... | |
double | wall_ |
Wall clock time. More... | |
Definition at line 75 of file AlpsTime.h.
|
inline |
Definition at line 96 of file AlpsTime.h.
|
inline |
Definition at line 97 of file AlpsTime.h.
|
inline |
Definition at line 98 of file AlpsTime.h.
|
inline |
Reset.
Definition at line 101 of file AlpsTime.h.
|
inline |
Start to count times.
Definition at line 111 of file AlpsTime.h.
|
inline |
Stop timer and computing times.
Definition at line 117 of file AlpsTime.h.
|
inline |
Definition at line 125 of file AlpsTime.h.
|
inline |
Definition at line 126 of file AlpsTime.h.
|
inline |
Get cpu timee.
Definition at line 130 of file AlpsTime.h.
|
inline |
Get cpu timee.
Definition at line 137 of file AlpsTime.h.
|
inline |
Get time depends on clock type.
Definition at line 144 of file AlpsTime.h.
|
inline |
Get/Set clock type.
Definition at line 160 of file AlpsTime.h.
|
inline |
Definition at line 161 of file AlpsTime.h.
|
inline |
Check if cpu time reach limit.
Definition at line 164 of file AlpsTime.h.
|
inline |
Check if wallclock time reach limit.
Definition at line 176 of file AlpsTime.h.
int AlpsTimer::clockType_ |
Definition at line 79 of file AlpsTime.h.
double AlpsTimer::limit_ |
Time limit.
Definition at line 82 of file AlpsTime.h.
double AlpsTimer::startCpu_ |
Definition at line 84 of file AlpsTime.h.
double AlpsTimer::startWall_ |
Definition at line 85 of file AlpsTime.h.
double AlpsTimer::finishCpu_ |
Definition at line 86 of file AlpsTime.h.
double AlpsTimer::finishWall_ |
Definition at line 87 of file AlpsTime.h.
double AlpsTimer::cpu_ |
Cpu time.
Definition at line 90 of file AlpsTime.h.
double AlpsTimer::wall_ |
Wall clock time.
Definition at line 93 of file AlpsTime.h.