|
Practical Tools for Simple Design
|
A singleton class that provides time-related functionalities. More...
#include <Time.hpp>
Static Public Member Functions | |
| static second_t | GetDeltaTime () |
| Get the delta time between frames in seconds. More... | |
| static ms_t | GetDeltaTimeMs () |
| Get the delta time between frames in milliseconds. More... | |
| static ms_t | GetElapsedTimeMs () |
| Get the elapsed time from the start of the program in milliseconds. More... | |
| static void | Update () |
| Update the time. More... | |
A singleton class that provides time-related functionalities.
This class provides functionalities such as getting the delta time between frames.
Time object.
|
inlinestatic |
Get the delta time between frames in seconds.
This function returns the time difference between the current frame and the last frame. The time difference is measured in seconds.
|
inlinestatic |
Get the delta time between frames in milliseconds.
This function returns the time difference between the current frame and the last frame. The time difference is measured in milliseconds.
|
static |
Get the elapsed time from the start of the program in milliseconds.
|
static |
Update the time.
This function updates the current time and the delta time. It is called by Core::Context::Update(). The user is not recommended to call this function.