10 #include <main/fps.hpp>
18 average[counter++] = 1000 / frame_time;
19 counter = (counter != 16) * counter;
21 if (new_time - old_time > 64) {
22 value = get_average();
30 float fps::get_average() {
32 for (
float i: average) {
void update(double time, double frame_time)