31 _start = std::chrono::high_resolution_clock::now();
32 _pause = std::chrono::high_resolution_clock::now();
40 std::chrono::duration< double, std::milli > ms;
45 ms = std::chrono::high_resolution_clock::now() -
_start;
46 return ms.count() / 1000.0;
52 _pause = std::chrono::high_resolution_clock::now();
62 _start += std::chrono::high_resolution_clock::now() -
_pause;
std::chrono::high_resolution_clock::time_point _pause
Time of the last call to pause().
double step() const
Returns the delta time between now and the last reset() call (or the constructor).
Class used to compute response times for benchmark purposes.
gum is the global namespace for all aGrUM entities
void reset()
Reset the timer.
double pause()
Pause the timer and return the delta (.
bool _sleeping
False if running.
double resume()
Resume the timer and return the delta (.
std::chrono::high_resolution_clock::time_point _start
Time of the last call to reset() or the constructor.