|
My Project
|
Manages time tracking for the engine. Computes delta time between frames and the current FPS. More...
#include <TimeManager.hpp>
Public Member Functions | |
| void | Init () |
| Initializes the time manager and sets the starting time. | |
| void | Update () |
| Updates the delta time and FPS. Call once per frame. | |
| float | GetDeltaTime () const |
| Returns the delta time (time elapsed since last frame) in seconds. | |
| float | GetFPS () const |
| Returns the current frames per second. | |
Manages time tracking for the engine. Computes delta time between frames and the current FPS.
| float Engine::TimeManager::GetDeltaTime | ( | ) | const |
Returns the delta time (time elapsed since last frame) in seconds.
|
inline |
Returns the current frames per second.
| void Engine::TimeManager::Init | ( | ) |
Initializes the time manager and sets the starting time.
| void Engine::TimeManager::Update | ( | ) |
Updates the delta time and FPS. Call once per frame.