6#include <brenta/window.hpp>
7#include <brenta/time.hpp>
11float time::current_time = 0.0f;
12float time::delta_time = 0.0f;
13float time::last_frame = 0.0f;
17 return window::get_time();
22 return time::delta_time;
27 return 1.0f / time::delta_time;
32 time::current_time = new_time;
33 time::delta_time = time::current_time - time::last_frame;
34 time::last_frame = time::current_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.