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

FpsCounter()

Constructor. Implicitly calls start() method.

void countUp()

Counts frames and calculates average fps.

int getFps()

Get current average frames per second number.

bool haveNewValue() const
void restart()

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