Brenta Engine 1.1
|
Time subsystem. More...
#include <engine_time.hpp>
Static Public Member Functions | |
static float | get_current_time () |
Get the current time. | |
static float | get_delta_time () |
Get the time since the last frame. | |
static float | get_fps () |
Get the frames per second. | |
static void | update (float new_time) |
Update the time. | |
Time subsystem.
This subsystem is used to manage the time of the engine. It is used to get the current time, the time since the last frame and the frames per second of the program.
Definition at line 39 of file engine_time.hpp.
|
static |
Get the current time.
This function returns the current time in seconds since the start of the program.
Definition at line 37 of file engine_time.cpp.
|
static |
Get the time since the last frame.
This function returns the time since the last update in seconds.
Definition at line 42 of file engine_time.cpp.
|
static |
Get the frames per second.
This function returns the frames per second of the program.
Definition at line 47 of file engine_time.cpp.
|
static |
Update the time.
This function updates the time of the program. It's intended use is to be called at each tick of the game loop.
newTime | The new time of the program |
Definition at line 52 of file engine_time.cpp.