Dip-All
0.91.0
|
#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 24 of file UtilTimer.h.
|
inline |
Definition at line 39 of file UtilTimer.h.
References reset().
|
inline |
Definition at line 42 of file UtilTimer.h.
|
inline |
Reset.
Definition at line 45 of file UtilTimer.h.
References cpu_, finishCpu_, finishReal_, real_, and start().
Referenced by UtilPrintFuncBegin(), and UtilTimer().
|
inline |
Start to count times.
Definition at line 54 of file UtilTimer.h.
References CoinCpuTime(), CoinGetTimeOfDay(), startCpu_, and startReal_.
Referenced by reset().
|
inline |
Stop timer and computing times.
Definition at line 60 of file UtilTimer.h.
References CoinCpuTime(), CoinGetTimeOfDay(), cpu_, finishCpu_, finishReal_, real_, startCpu_, and startReal_.
|
inline |
Get cpu time.
Definition at line 68 of file UtilTimer.h.
References CoinCpuTime(), cpu_, finishCpu_, and startCpu_.
Referenced by UtilPrintFuncBegin(), and UtilPrintFuncEnd().
|
inline |
Get wallClock time.
Definition at line 75 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 83 of file UtilTimer.h.
References getRealTime().
|
private |
Start, end markers.
Definition at line 27 of file UtilTimer.h.
Referenced by getCpuTime(), start(), and stop().
|
private |
Definition at line 28 of file UtilTimer.h.
Referenced by getCpuTime(), reset(), and stop().
|
private |
Definition at line 29 of file UtilTimer.h.
Referenced by getRealTime(), start(), and stop().
|
private |
Definition at line 30 of file UtilTimer.h.
Referenced by getRealTime(), reset(), and stop().
|
private |
Cpu time.
Definition at line 33 of file UtilTimer.h.
Referenced by getCpuTime(), reset(), and stop().
|
private |
Real clock time.
Definition at line 36 of file UtilTimer.h.
Referenced by getRealTime(), reset(), and stop().