DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Deki::FPSCounter Class Reference

#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.

Constructor & Destructor Documentation

◆ FPSCounter()

Deki::FPSCounter::FPSCounter ( )

Member Function Documentation

◆ BeginFrame()

void Deki::FPSCounter::BeginFrame ( )

Call at the start of each frame.

◆ EndFrame()

void Deki::FPSCounter::EndFrame ( )

Call at the end of each frame.

◆ GetFPS()

float Deki::FPSCounter::GetFPS ( ) const
inline

Frames per second, averaged over the last kSampleCount frames.

◆ GetMinFPS()

float Deki::FPSCounter::GetMinFPS ( ) const
inline

◆ GetMaxFPS()

float Deki::FPSCounter::GetMaxFPS ( ) const
inline

◆ GetTotalFrames()

uint32_t Deki::FPSCounter::GetTotalFrames ( ) const
inline

◆ GetAverageFrameTime()

float Deki::FPSCounter::GetAverageFrameTime ( ) const

Average frame time in milliseconds.

◆ Reset()

void Deki::FPSCounter::Reset ( )

Clears all statistics.

◆ SetEnabled()

void Deki::FPSCounter::SetEnabled ( bool enable)
inline

◆ IsEnabled()

bool Deki::FPSCounter::IsEnabled ( ) const
inline

◆ PrintStats()

void Deki::FPSCounter::PrintStats ( ) const

Writes the statistics to the log.


The documentation for this class was generated from the following file: