[−][src]Module tetra::time
Functions and types relating to measuring and manipulating time.
Enums
Timestep | The different timestep modes that a game can have. |
Functions
get_accumulator | Returns the amount of time that has accumulated between updates. |
get_blend_factor | Returns a value between 0.0 and 1.0, representing how far between updates the game loop currently is. |
get_blend_factor_precise | Returns a precise value between 0.0 and 1.0, representing how far between updates the game loop currently is. |
get_delta_time | Returns the amount of time that has passed since the last frame was rendered. |
get_fps | Returns the current frame rate, averaged out over the last 200 frames. |
get_timestep | Gets the current timestep of the application. |
set_timestep | Sets the timestep of the application. |