jubilant-funicular
|
used to cap the fps of the program at a specific value More...
#include <FPSLimiter.h>
Public Member Functions | |
FPSLimiter (float max=60) | |
constructor and destructor | |
void | setMaxFPS (float maxFPS) |
sets maximum allowed fps | |
float | getFPS () const |
gets most recently calculated fps | |
long double | end () |
ends fps calculations, delaying if necessary to cap fps | |
![]() | |
Timer () | |
constructor and destructor | |
virtual void | begin () |
begins timer | |
virtual long double | end () const |
return time since beginning of timer in nanoseconds | |
Private Attributes | |
float | m_fps |
most recently calculated fps | |
float | m_maxFPS |
maximum allowed fps | |
Additional Inherited Members | |
![]() | |
std::chrono::time_point< std::chrono::high_resolution_clock, std::chrono::nanoseconds > | m_startPoint |
used to cap the fps of the program at a specific value
Definition at line 8 of file FPSLimiter.h.