ConnectStreamPlaybackUtil::FpsCounterΒΆ

class kanzi::connect::ConnectStreamPlaybackUtil::FpsCounter

A helper class that can be used to measure events per second.

When an instance of this class is created, the time measurement is automatically started. To count event and to count per second average call countUp().

Public Functions

inline FpsCounter()

Constructor. Implicitly calls start() method.

inline void countUp()

Counts frames and calculates average fps.

inline int getFps()

Get current average frames per second number.

inline bool haveNewValue() const
inline void restart()

Starts to track the time. Can be used to restart the time measurement.