AV module
legacy::FPSCounter
Legacy frames-per-second counter.
FPSCounter
#include <icy/av/fpscounter.h>Legacy frames-per-second counter.
Public Attributes
start
clock_t startend
clock_t endframes
int64_t framestotal
double totalfps
double fpsPublic Methods
| Return | Name | Description |
|---|---|---|
FPSCounter inline | ||
void | tick inline | Begin a new timing cycle (calls endFrame() first if already started). |
void | reset inline | Reset all counters to zero. |
bool | started inline | #### Returns |
void | startFrame inline | Record the frame start time. |
double | endFrame inline | Record the frame end time and update the cumulative FPS average. |
FPSCounter
inline
inline FPSCounter()tick
inline
inline void tick()Begin a new timing cycle (calls endFrame() first if already started).
reset
inline
inline void reset()Reset all counters to zero.
started
inline
inline bool started()Returns
True if startFrame() has been called and the timer is running.
startFrame
inline
inline void startFrame()Record the frame start time.
endFrame
inline
inline double endFrame()Record the frame end time and update the cumulative FPS average.
Returns
The updated FPS value.
