Dip
0.92.4
|
#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.
References reset().
|
inline |
Definition at line 97 of file AlpsTime.h.
References reset().
|
inline |
Definition at line 98 of file AlpsTime.h.
|
inline |
Reset.
Definition at line 101 of file AlpsTime.h.
References cpu_, finishCpu_, finishWall_, startCpu_, startWall_, and wall_.
Referenced by AlpsTimer().
|
inline |
Start to count times.
Definition at line 111 of file AlpsTime.h.
References AlpsCpuTime, AlpsWallClock(), startCpu_, and startWall_.
|
inline |
Stop timer and computing times.
Definition at line 117 of file AlpsTime.h.
References AlpsCpuTime, AlpsWallClock(), cpu_, finishCpu_, finishWall_, startCpu_, startWall_, and wall_.
|
inline |
Definition at line 125 of file AlpsTime.h.
References limit_.
|
inline |
Definition at line 126 of file AlpsTime.h.
References limit_.
|
inline |
Get cpu timee.
Definition at line 130 of file AlpsTime.h.
References AlpsCpuTime, cpu_, finishCpu_, and startCpu_.
|
inline |
Get cpu timee.
Definition at line 137 of file AlpsTime.h.
References AlpsWallClock(), finishWall_, startWall_, and wall_.
|
inline |
Get time depends on clock type.
Definition at line 144 of file AlpsTime.h.
References AlpsClockTypeCpu, AlpsClockTypeWallClock, AlpsCpuTime, AlpsWallClock(), clockType_, cpu_, finishCpu_, finishWall_, startCpu_, startWall_, and wall_.
|
inline |
|
inline |
Definition at line 161 of file AlpsTime.h.
References clockType_.
|
inline |
Check if cpu time reach limit.
Definition at line 164 of file AlpsTime.h.
References AlpsCpuTime, AlpsWallClock(), finishCpu_, finishWall_, limit_, and startCpu_.
|
inline |
Check if wallclock time reach limit.
Definition at line 176 of file AlpsTime.h.
References AlpsCpuTime, AlpsWallClock(), finishCpu_, finishWall_, limit_, and startWall_.
int AlpsTimer::clockType_ |
Definition at line 79 of file AlpsTime.h.
Referenced by getClockType(), getTime(), and setClockType().
double AlpsTimer::limit_ |
Time limit.
Definition at line 82 of file AlpsTime.h.
Referenced by getLimit(), reachCpuLimit(), reachWallLimit(), and setLimit().
double AlpsTimer::startCpu_ |
Definition at line 84 of file AlpsTime.h.
Referenced by getCpuTime(), getTime(), reachCpuLimit(), reset(), start(), and stop().
double AlpsTimer::startWall_ |
Definition at line 85 of file AlpsTime.h.
Referenced by getTime(), getWallClock(), reachWallLimit(), reset(), start(), and stop().
double AlpsTimer::finishCpu_ |
Definition at line 86 of file AlpsTime.h.
Referenced by getCpuTime(), getTime(), reachCpuLimit(), reachWallLimit(), reset(), and stop().
double AlpsTimer::finishWall_ |
Definition at line 87 of file AlpsTime.h.
Referenced by getTime(), getWallClock(), reachCpuLimit(), reachWallLimit(), reset(), and stop().
double AlpsTimer::cpu_ |
Cpu time.
Definition at line 90 of file AlpsTime.h.
Referenced by getCpuTime(), getTime(), reset(), and stop().
double AlpsTimer::wall_ |
Wall clock time.
Definition at line 93 of file AlpsTime.h.
Referenced by getTime(), getWallClock(), reset(), and stop().