Dip
0.92.4
|
#include <UtilTimer.h>
Public Member Functions | |
UtilTimer () | |
~UtilTimer () | |
void | reset () |
Reset. More... | |
void | start () |
Start to count times. More... | |
void | stop () |
Stop timer and computing times. More... | |
double | getCpuTime () |
Get cpu time. More... | |
double | getRealTime () |
Get wallClock time. More... | |
bool | isPast (double limit) |
Return whether the given amount of real time has elapsed since the timer was started. More... | |
Private Attributes | |
double | startCpu_ |
Start, end markers. More... | |
double | finishCpu_ |
double | startReal_ |
double | finishReal_ |
double | cpu_ |
Cpu time. More... | |
double | real_ |
Real clock time. More... | |
Definition at line 23 of file UtilTimer.h.
|
inline |
Definition at line 38 of file UtilTimer.h.
References reset().
|
inline |
Definition at line 41 of file UtilTimer.h.
|
inline |
Reset.
Definition at line 44 of file UtilTimer.h.
References cpu_, finishCpu_, finishReal_, real_, and start().
Referenced by UtilPrintFuncBegin(), and UtilTimer().
|
inline |
Start to count times.
Definition at line 53 of file UtilTimer.h.
References CoinCpuTime(), CoinGetTimeOfDay(), startCpu_, and startReal_.
Referenced by reset().
|
inline |
Stop timer and computing times.
Definition at line 59 of file UtilTimer.h.
References CoinCpuTime(), CoinGetTimeOfDay(), cpu_, finishCpu_, finishReal_, real_, startCpu_, and startReal_.
|
inline |
Get cpu time.
Definition at line 67 of file UtilTimer.h.
References CoinCpuTime(), cpu_, finishCpu_, and startCpu_.
Referenced by UtilPrintFuncBegin(), and UtilPrintFuncEnd().
|
inline |
Get wallClock time.
Definition at line 74 of file UtilTimer.h.
References CoinGetTimeOfDay(), finishReal_, real_, and startReal_.
Referenced by isPast(), DecompAlgo::setObjBound(), DecompAlgo::setObjBoundIP(), UtilPrintFuncBegin(), and UtilPrintFuncEnd().
|
inline |
Return whether the given amount of real time has elapsed since the timer was started.
Definition at line 82 of file UtilTimer.h.
References getRealTime().
|
private |
Start, end markers.
Definition at line 26 of file UtilTimer.h.
Referenced by getCpuTime(), start(), and stop().
|
private |
Definition at line 27 of file UtilTimer.h.
Referenced by getCpuTime(), reset(), and stop().
|
private |
Definition at line 28 of file UtilTimer.h.
Referenced by getRealTime(), start(), and stop().
|
private |
Definition at line 29 of file UtilTimer.h.
Referenced by getRealTime(), reset(), and stop().
|
private |
Cpu time.
Definition at line 32 of file UtilTimer.h.
Referenced by getCpuTime(), reset(), and stop().
|
private |
Real clock time.
Definition at line 35 of file UtilTimer.h.
Referenced by getRealTime(), reset(), and stop().