#include <UtilTimer.h>
Public Member Functions | |
| UtilTimer () | |
| ~UtilTimer () | |
| void | reset () |
| Reset. | |
| void | start () |
| Start to count times. | |
| void | stop () |
| Stop timer and computing times. | |
| double | getCpuTime () |
| Get cpu time. | |
| double | getRealTime () |
| Get wallClock time. | |
| bool | isPast (double limit) |
| Return whether the given amount of real time has elapsed since the timer was started. | |
Private Attributes | |
| double | startCpu_ |
| Start, end markers. | |
| double | finishCpu_ |
| double | startReal_ |
| double | finishReal_ |
| double | cpu_ |
| Cpu time. | |
| double | real_ |
| Real clock time. | |
Definition at line 24 of file UtilTimer.h.
| UtilTimer::UtilTimer | ( | ) | [inline] |
Definition at line 39 of file UtilTimer.h.
References reset().
| UtilTimer::~UtilTimer | ( | ) | [inline] |
Definition at line 42 of file UtilTimer.h.
| void UtilTimer::reset | ( | ) | [inline] |
Reset.
Definition at line 45 of file UtilTimer.h.
References cpu_, finishCpu_, finishReal_, real_, and start().
Referenced by UtilPrintFuncBegin(), and UtilTimer().
| void UtilTimer::start | ( | ) | [inline] |
Start to count times.
Definition at line 54 of file UtilTimer.h.
References CoinCpuTime(), CoinGetTimeOfDay(), startCpu_, and startReal_.
Referenced by reset().
| void UtilTimer::stop | ( | ) | [inline] |
Stop timer and computing times.
Definition at line 60 of file UtilTimer.h.
References CoinCpuTime(), CoinGetTimeOfDay(), cpu_, finishCpu_, finishReal_, real_, startCpu_, and startReal_.
| double UtilTimer::getCpuTime | ( | ) | [inline] |
Get cpu time.
Definition at line 68 of file UtilTimer.h.
References CoinCpuTime(), cpu_, finishCpu_, and startCpu_.
Referenced by UtilPrintFuncBegin(), and UtilPrintFuncEnd().
| double UtilTimer::getRealTime | ( | ) | [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().
| bool UtilTimer::isPast | ( | double | limit | ) | [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().
double UtilTimer::startCpu_ [private] |
Start, end markers.
Definition at line 27 of file UtilTimer.h.
Referenced by getCpuTime(), start(), and stop().
double UtilTimer::finishCpu_ [private] |
Definition at line 28 of file UtilTimer.h.
Referenced by getCpuTime(), reset(), and stop().
double UtilTimer::startReal_ [private] |
Definition at line 29 of file UtilTimer.h.
Referenced by getRealTime(), start(), and stop().
double UtilTimer::finishReal_ [private] |
Definition at line 30 of file UtilTimer.h.
Referenced by getRealTime(), reset(), and stop().
double UtilTimer::cpu_ [private] |
Cpu time.
Definition at line 33 of file UtilTimer.h.
Referenced by getCpuTime(), reset(), and stop().
double UtilTimer::real_ [private] |
Real clock time.
Definition at line 36 of file UtilTimer.h.
Referenced by getRealTime(), reset(), and stop().
1.6.1