32 #include <agrum/agrum.h> 118 std::chrono::high_resolution_clock::time_point
start_;
121 std::chrono::high_resolution_clock::time_point
pause_;
129 #ifndef GUM_NO_INLINE 130 # include <agrum/tools/core/timer_inl.h> double step() const
Returns the delta time between now and the last reset() call (or the constructor).
INLINE void emplace(Args &&... args)
std::chrono::high_resolution_clock::time_point start_
Time of the last call to reset() or the constructor.
void reset()
Reset the timer.
Timer()
Default constructor (launching the timer).
double pause()
Pause the timer and return the delta (.
bool sleeping_
False if running.
Timer(const Timer &timer)
Copy constructor.
double resume()
Resume the timer and return the delta (.
Timer & operator=(const Timer &timer)
Copy operator.
std::chrono::high_resolution_clock::time_point pause_
Time of the last call to pause().
Class used to compute response times for benchmark purposesThis class represents a classic timer...