15 #ifndef UTIL_TIMER_INCLUDED 16 #define UTIL_TIMER_INCLUDED 19 #include "CoinTime.hpp" 54 startCpu_ = CoinCpuTime();
55 startReal_ = CoinGetTimeOfDay();
60 finishCpu_ = CoinCpuTime();
61 finishReal_ = CoinGetTimeOfDay();
62 cpu_ = finishCpu_ - startCpu_;
63 real_ = finishReal_ - startReal_;
68 finishCpu_ = CoinCpuTime();
69 cpu_ = finishCpu_ - startCpu_;
75 finishReal_ = CoinGetTimeOfDay();
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 getCpuTime()
Get cpu time.
void start()
Start to count times.
void stop()
Stop timer and computing times.