27#include "engine_time.hpp"
31using namespace brenta;
33float time::current_time = 0.0f;
34float time::delta_time = 0.0f;
35float time::last_frame = 0.0f;
49 return 1.0f / delta_time;
54 current_time = new_time;
55 delta_time = current_time - last_frame;
56 last_frame = current_time;
static float get_time()
Get the time.
static float get_current_time()
Get the current time.
static void update(float new_time)
Update the time.
static float get_delta_time()
Get the time since the last frame.
static float get_fps()
Get the frames per second.