54 Uint64 m_startTime = 0;
55 Uint64 m_pausedTime = 0;
56 bool m_running =
false;
void start()
Start the clock if it is currently stopped.
void stop()
Stop the clock, preserving the current elapsed time.
Uint64 getElapsedMilliseconds() const
Return the elapsed time in milliseconds.
A pausable, restartable elapsed-time clock.
bool isRunning() const
Return true if the clock is currently running.
float getElapsedSeconds() const
Return the elapsed time in seconds.
void restart()
Reset the elapsed time to zero and start the clock.
static Uint64 s_seconds(float sec)
Convert seconds to milliseconds.
static Uint64 s_milliseconds(Uint64 ms)
Convert milliseconds to the internal millisecond representation (identity).
Utility for converting time values to milliseconds.