Version 8.9.0
 
Loading...
Searching...
No Matches
evo::FramerateCounter Class Reference

Framerate calculation helper. More...

#include <FramerateCounter.h>

Collaboration diagram for evo::FramerateCounter:
Collaboration graph

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

Detailed Description

Constructor & Destructor Documentation

◆ FramerateCounter()

evo::FramerateCounter::FramerateCounter ( double  interval = 1000.0,
unsigned int  smoothSize = 30 
)

Standard constructor.

Parameters
[in]intervaltime interval in ms
[in]smoothSizehalf size of history, of which mean value is calculated.

Member Function Documentation

◆ getFps()

double evo::FramerateCounter::getFps ( )

Accessor to current frames per second rate (no triggering is performed)

Returns
fps
Examples
examples/linux/oop/irimagerShowOOP.cpp, and examples/linux/opengl/irimagerShow.cpp.

◆ trigger()

bool evo::FramerateCounter::trigger ( double *  fps = NULL)

Trigger, i.e., integrate new measurement.

Parameters
[out]fpsframes per second
Returns
signal when interval (constructor) is elapsed
Examples
examples/linux/oop/irimagerShowOOP.cpp, and examples/linux/opengl/irimagerShow.cpp.

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