15 #ifndef UTIL_TIMER_INCLUDED 16 #define UTIL_TIMER_INCLUDED 54 startCpu_ = CoinCpuTime();
60 finishCpu_ = CoinCpuTime();
62 cpu_ = finishCpu_ - startCpu_;
63 real_ = finishReal_ - startReal_;
68 finishCpu_ = CoinCpuTime();
69 cpu_ = finishCpu_ - startCpu_;
76 real_ = finishReal_ - startReal_;
double getRealTime()
Get wallClock time.
bool isPast(double limit)
Return whether the given amount of real time has elapsed since the timer was started.
double CoinGetTimeOfDay()
double getCpuTime()
Get cpu time.
void start()
Start to count times.
void stop()
Stop timer and computing times.