Public Member Functions | Private Attributes
optris::FramerateCounter Class Reference

#include <FramerateCounter.h>

List of all members.

Public Member Functions

 FramerateCounter (unsigned int queue=10)
double getMeanValue ()
void print (double interval, std::ostream &stream)
void trigger ()
virtual ~FramerateCounter ()

Private Attributes

std::list< double > _fpsList
bool _isDirty
unsigned int _queue
Timer * _tElapsed
Timer * _tPrint

Detailed Description

Framerate calculation helper

Author:
Stefan May (Nuremberg Institute of Technology Georg Simon Ohm)

Definition at line 30 of file FramerateCounter.h.


Constructor & Destructor Documentation

optris::FramerateCounter::FramerateCounter ( unsigned int  queue = 10)

Standard constructor

Parameters:
[in]queueQueue length to average

Standard destructor


Member Function Documentation

Calculate mean value of queue

Returns:
average frame rate of last trigger events
void optris::FramerateCounter::print ( double  interval,
std::ostream &  stream 
)

Print frame rate at reduced time interval

Parameters:
[in]intervaltime interval
[in]outputstream

Trigger, i.e., increase counter


Member Data Documentation

std::list<double> optris::FramerateCounter::_fpsList [private]

Definition at line 70 of file FramerateCounter.h.

Definition at line 72 of file FramerateCounter.h.

unsigned int optris::FramerateCounter::_queue [private]

Definition at line 68 of file FramerateCounter.h.

Definition at line 64 of file FramerateCounter.h.

Definition at line 66 of file FramerateCounter.h.


The documentation for this class was generated from the following file:


optris_drivers
Author(s): Stefan May (Nuremberg Institute of Technology Georg Simon Ohm - www.th-nuernberg.de), 64-Bit platform supported by Fraunhofer IPA (www.ipa.fraunhofer.de), Support for ROS hydro migration by Christopher-Eyk Hrabia (DAI-Labor, Technische Universität Berlin)
autogenerated on Mon Oct 6 2014 03:09:39