17 std::chrono::time_point<std::chrono::high_resolution_clock> last_time;
18 std::chrono::time_point<std::chrono::high_resolution_clock> current_time;
21 unsigned int frame_count;
23 void sleepFor(
const int milliseconds);
float getCurrentFPS() const noexcept
Gets the current fps.
Definition: fps_counter.cpp:21
FPSCounter(const float max_fps=0.0f)
FPSCounter cunstructer.
Definition: fps_counter.cpp:11
Class for fps counter.
Definition: fps_counter.h:13
void resetAverageFPS() noexcept
Resets FPS Average.
Definition: fps_counter.cpp:32
Class for a subject that an observer would observe for changes.
Definition: subject.h:13
float assessCountAndGetDelta()
Calculates frame delta from FPS counter.
Definition: fps_counter.cpp:42
virtual ~FPSCounter()=default
Destroys the object.
float getAverageFPS() const noexcept
Gets the average fps.
Definition: fps_counter.cpp:25
float getMaxFPS() const noexcept
Gets the maximum fps.
Definition: fps_counter.cpp:17