![]() |
AireEngine
A 3D Open-World Game Engine
|
Simple clock class. More...
#include <clock.h>
Public Member Functions | |
| Clock () | |
| Create a new clock. It tracks time passed since creation (in seconds). | |
| void | reset () |
| void | update () |
| Reset the clock and update dt (time since the last update). | |
| double | t () const |
| float | dt () const |
Simple clock class.
|
inline |
Get the time delta (in seconds) recorded at the last clock update.
|
inline |
Resert the clock without updating dt. Acts as if the clock was just created.
|
inline |
Get the time (in seconds) that was recorded at the last clock update.
