LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FpsHistory Struct Reference

#include <FpsHistory.h>

Inheritance diagram for FpsHistory:
[legend]
Collaboration diagram for FpsHistory:
[legend]

Public Member Functions

 FpsHistory ()
 
void SetSamplePeriod (int PeriodMs)
 
void Reset (int NewSize)
 
void Dump ()
 
const FpsHistoryElemFlip ()
 
- Public Member Functions inherited from CircularBuffer< FpsHistoryElem >
 CircularBuffer ()
 
 CircularBuffer (int BufferSize)
 
 ~CircularBuffer ()
 
void Reset (int BufferSize=0)
 
void AddSample (const FpsHistoryElem &Item, long long int Time)
 
const FpsHistoryElemLastSample ()
 

Protected Attributes

int SamplePeriodMs
 
int FrameCount
 
int LastSampleMs
 
- Protected Attributes inherited from CircularBuffer< FpsHistoryElem >
Sample * Buffer
 
intTimeStamp
 
int BufferSize
 
int SampleCount
 
int CurrentIndex
 

Constructor & Destructor Documentation

FpsHistory::FpsHistory ( )
inline

Member Function Documentation

void FpsHistory::Dump ( )
const FpsHistoryElem& FpsHistory::Flip ( )
void FpsHistory::Reset ( int  NewSize)
Parameters
NewSizeSize of the buffer (0 to use current size)
void FpsHistory::SetSamplePeriod ( int  PeriodMs)
inline

Member Data Documentation

int FpsHistory::FrameCount
protected
int FpsHistory::LastSampleMs
protected
int FpsHistory::SamplePeriodMs
protected

The documentation for this struct was generated from the following files: