Jafar
|
Class to generate framerate data. More...
Class to generate framerate data.
Definition at line 151 of file timingTools.hpp.
#include <timingTools.hpp>
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 |
jafar::kernel::FrameRate::FrameRate | ( | TypeUpdate | upd_ = ontime , |
int | updTimeInt_ = 2000 , |
||
int | updFrameInt_ = 10 |
||
) |
Constructor.
upd_ | update type |
updTimeInt_ | time interval for time based update in milliseconds |
updFrameInt_ | frames interval for time based update |
void jafar::kernel::FrameRate::updateFps | ( | ) |
Update fps.
to be called after each frame computation
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |