27#include "engine_time.hpp"
31using namespace Brenta;
33float Time::currentTime = 0.0f;
34float Time::deltaTime = 0.0f;
35float Time::lastFrame = 0.0f;
49 return 1.0f / deltaTime;
54 currentTime = newTime;
55 deltaTime = currentTime - lastFrame;
56 lastFrame = currentTime;
static float GetTime()
Get the time.
static float GetFPS()
Get the frames per second.
static float GetDeltaTime()
Get the time since the last frame.
static void Update(float newTime)
Update the time.
static float GetCurrentTime()
Get the current time.