Defined in File Timer.hpp
public Aux::LoggingTimer
(Class LoggingTimer)
public Aux::StartedTimer
(Class StartedTimer)
A timer for running time measurements.
Subclassed by Aux::LoggingTimer, Aux::StartedTimer
Public Types
Public Functions
Start the clock. Returns the time at which the instance was started.
Stops the clock permanently for the instance of the Timer. Returns the time at which the instance was stopped.
Returns a chrono::duration since the Timer was started. If stop() was called, the duration is between the start() and stop() calls is returned.
Returns the number of milliseconds since the Timer was started. If stop() was called, the duration is between the start() and stop() calls is returned.
Returns the number of microseconds since the Timer was started. If stop() was called, the duration is between the start() and stop() calls is returned.
Returns the number of nanoseconds since the Timer was started. If stop() was called, the duration is between the start() and stop() calls is returned.
Returns the time at which the instance was started.
Returns the time at which the instance was stopped.
Returns a human-readable representation including the elapsed time and unit.
Protected Functions
If running returns now, otherwise the stop time.
Protected Attributes
true if timer has been started and not stopped after that
time at which timer has been started
time at which timer has been stopped