Mana
Loading...
Searching...
No Matches
Functions
Time Namespace Reference

Functions

uint32_t absoluteTimeMs ()
 The time in milliseconds since the program started (wraps around after ~49 days).
 
unsigned deltaTimeMs ()
 The time in milliseconds since the last frame, but never more than 1000.
 
float deltaTime ()
 The time in seconds since the last frame, but never more than 1.
 
void beginFrame ()
 Called at the start of each frame, updates the above variables.
 

Function Documentation

◆ absoluteTimeMs()

uint32_t Time::absoluteTimeMs ( )

The time in milliseconds since the program started (wraps around after ~49 days).

Definition at line 34 of file time.cpp.

◆ beginFrame()

void Time::beginFrame ( )

Called at the start of each frame, updates the above variables.

Definition at line 54 of file time.cpp.

◆ deltaTime()

float Time::deltaTime ( )

The time in seconds since the last frame, but never more than 1.

Definition at line 44 of file time.cpp.

◆ deltaTimeMs()

unsigned Time::deltaTimeMs ( )

The time in milliseconds since the last frame, but never more than 1000.

Definition at line 39 of file time.cpp.