8using sdl_count_t = Uint64;
32 [[deprecated(
"Use GetDeltaTimeMs() instead.")]]
34 return s_DeltaTime / 1000.0F;
68 static sdl_count_t s_Start;
75 static sdl_count_t s_Now;
82 static sdl_count_t s_Last;
90 static ms_t s_DeltaTime;
A singleton class that provides time-related functionalities.
Definition: Time.hpp:22
static void Update()
Update the time.
static ms_t GetElapsedTimeMs()
Get the elapsed time from the start of the program in milliseconds.
static ms_t GetDeltaTimeMs()
Get the delta time between frames in milliseconds.
Definition: Time.hpp:45
static second_t GetDeltaTime()
Get the delta time between frames in seconds.
Definition: Time.hpp:33
Useful tools for development.
Definition: Animation.hpp:12