A wrapper around std::chrono::duration.
Basic utility macros, typedefs...
#define SDLU_BEGIN
Definition: Util.hpp:32
Essentially a timer.
Definition: Clock.hpp:20
Time Restart()
Restarts the Clock.
Time GetElapsedTime()
Returns the time elapsed since the last Restart() call.
Clock()
Creates a new Clock. It has not yet been started, call Restart() before doing anything else.
This class wraps std::chrono::duration and defines some conversions for commonly used times.
Definition: Time.hpp:24