#include <icy/av/fpscounter.h>Legacy frames-per-second counter.
clock_t startclock_t endint64_t framesdouble totaldouble fps| 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. |
inline
inline FPSCounter()inline
inline void tick()Begin a new timing cycle (calls endFrame() first if already started).
inline
inline void reset()Reset all counters to zero.
inline
inline bool started()True if startFrame() has been called and the timer is running.
inline
inline void startFrame()Record the frame start time.
inline
inline double endFrame()Record the frame end time and update the cumulative FPS average.
The updated FPS value.