Framerate calculation helper. More...
#include <FramerateCounter.h>
Public Member Functions | |
FramerateCounter (double interval=1000.0, unsigned int smoothSize=30) | |
Standard constructor. More... | |
virtual | ~FramerateCounter () |
Destructor. | |
bool | trigger (double *fps=NULL) |
Trigger, i.e., integrate new measurement. More... | |
double | getFps () |
Accessor to current frames per second rate (no triggering is performed) More... | |
Framerate calculation helper.
evo::FramerateCounter::FramerateCounter | ( | double | interval = 1000.0 , |
unsigned int | smoothSize = 30 |
||
) |
Standard constructor.
[in] | interval | time interval in ms |
[in] | smoothSize | half size of history, of which mean value is calculated. |
double evo::FramerateCounter::getFps | ( | ) |
Accessor to current frames per second rate (no triggering is performed)
bool evo::FramerateCounter::trigger | ( | double * | fps = NULL | ) |
Trigger, i.e., integrate new measurement.
[out] | fps | frames per second |