FastCV Sample Application
1.7.1
|
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 |
FPSCounter class Keeps track Performance metrics of the application.
Default Constructor.
Default constructor.
void FPSCounter::FrameTick | ( | ) |
Should be called every frame.
to be called every frame to update the fps count
float FPSCounter::GetCurrentFPS | ( | ) | [inline] |
Returns the running fps.
float FPSCounter::GetCurrentFPS | ( | ) | [inline] |
Returns the running fps.
float FPSCounter::GetFilteredFPS | ( | ) | [inline] |
Returns the filtered fps.
float FPSCounter::GetFilteredFPS | ( | ) | [inline] |
Returns the filtered fps.
void FPSCounter::Reset | ( | ) |
Resets the counters.
resets the timer and frames
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.