|
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
|
#include <deki/FPSCounter.h>
Public Member Functions | |
| FPSCounter () | |
| void | BeginFrame () |
| Call at the start of each frame. | |
| void | EndFrame () |
| Call at the end of each frame. | |
| float | GetFPS () const |
| Frames per second, averaged over the last kSampleCount frames. | |
| float | GetMinFPS () const |
| float | GetMaxFPS () const |
| uint32_t | GetTotalFrames () const |
| float | GetAverageFrameTime () const |
| Average frame time in milliseconds. | |
| void | Reset () |
| Clears all statistics. | |
| void | SetEnabled (bool enable) |
| bool | IsEnabled () const |
| void | PrintStats () const |
| Writes the statistics to the log. | |
| Deki::FPSCounter::FPSCounter | ( | ) |
| void Deki::FPSCounter::BeginFrame | ( | ) |
Call at the start of each frame.
| void Deki::FPSCounter::EndFrame | ( | ) |
Call at the end of each frame.
|
inline |
Frames per second, averaged over the last kSampleCount frames.
|
inline |
|
inline |
|
inline |
| float Deki::FPSCounter::GetAverageFrameTime | ( | ) | const |
Average frame time in milliseconds.
| void Deki::FPSCounter::Reset | ( | ) |
Clears all statistics.
|
inline |
|
inline |
| void Deki::FPSCounter::PrintStats | ( | ) | const |
Writes the statistics to the log.