FastCV Sample Application  1.7.1
FPSCounter Class Reference

FPSCounter class Keeps track Performance metrics of the application. More...

#include <FPSCounter.h>

Public Member Functions

 FPSCounter ()
 Default Constructor.
void FrameTick ()
 Should be called every frame.
void Reset ()
 Resets the counters.
float GetCurrentFPS ()
 Returns the running fps.
float GetFilteredFPS ()
 Returns the filtered fps.
 ~FPSCounter ()
 Default destructor.
 FPSCounter ()
 Default Constructor.
void FrameTick ()
 Should be called every frame.
void Reset ()
 Resets the counters.
float GetCurrentFPS ()
 Returns the running fps.
float GetFilteredFPS ()
 Returns the filtered fps.
 ~FPSCounter ()
 Default destructor.

Protected Attributes

float mFPS
float mFilteredFPS
uint64_t mStartTime
uint64_t mLastTime
uint64_t mFrameCount
float mSecIIR

Static Protected Attributes

static const uint64_t SECOND = 1000000

Detailed Description

FPSCounter class Keeps track Performance metrics of the application.


Constructor & Destructor Documentation

Default Constructor.

Default constructor.


Member Function Documentation

Should be called every frame.

to be called every frame to update the fps count

float FPSCounter::GetCurrentFPS ( ) [inline]

Returns the running fps.

Returns:
fps
float FPSCounter::GetCurrentFPS ( ) [inline]

Returns the running fps.

Returns:
fps
float FPSCounter::GetFilteredFPS ( ) [inline]

Returns the filtered fps.

Returns:
fps
float FPSCounter::GetFilteredFPS ( ) [inline]

Returns the filtered fps.

Returns:
fps

Resets the counters.

resets the timer and frames


Field Documentation

float FPSCounter::mFilteredFPS [protected]

Filtered FPS

float FPSCounter::mFPS [protected]

Current FPS

uint64_t FPSCounter::mFrameCount [protected]

Number of frames elapsed since the start

uint64_t FPSCounter::mLastTime [protected]

Last time stamp

float FPSCounter::mSecIIR [protected]

Filtered average time between measurements.

uint64_t FPSCounter::mStartTime [protected]

Time stamp at start

static const uint64_t FPSCounter::SECOND = 1000000 [static, protected]

1 second defined in terms of micro second.


The documentation for this class was generated from the following files:
 All Data Structures Functions Variables