class
#include <nCine/Base/Timer.h>
Timer Accumulates the time between starting and stopping the time measurement.
Constructors, destructors, conversion operators
- Timer()
Public functions
- void start()
- Starts the timer.
- void stop()
- Stops the timer.
- void reset()
- Resets the accumulated time.
- auto isRunning() const -> bool
- Returns
true
if the timer is running. - auto interval() const -> float
- Returns elapsed time in seconds since last starting the timer.
- auto total() const -> float
- Returns total accumulated time in seconds.