Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Attributes
jafar::kernel::FrameRate Class Reference

Class to generate framerate data. More...


Detailed Description

Class to generate framerate data.

Definition at line 151 of file timingTools.hpp.

#include <timingTools.hpp>

List of all members.

Public Types

enum  TypeUpdate { ontime, onframe }

Public Member Functions

 FrameRate (TypeUpdate upd_=ontime, int updTimeInt_=2000, int updFrameInt_=10)
 Constructor.
void updateFps ()
 Update fps.
float getFps ()
 get last fps

Private Attributes

TypeUpdate upd
boost::posix_time::ptime lastUpdate
boost::posix_time::time_duration fpsUpdateInterval
int numFramesInterval
int numFrames
float fps

Constructor & Destructor Documentation

jafar::kernel::FrameRate::FrameRate ( TypeUpdate  upd_ = ontime,
int  updTimeInt_ = 2000,
int  updFrameInt_ = 10 
)

Constructor.

Parameters:
upd_update type
updTimeInt_time interval for time based update in milliseconds
updFrameInt_frames interval for time based update

Member Function Documentation

Update fps.

to be called after each frame computation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1
LAAS-CNRS