Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FrameRateStatistics.h

Go to the documentation of this file.
00001 
00037 #ifndef _AMIRE_COMPONENT_FRAME_RATE_STATISTICS_H
00038 #define _AMIRE_COMPONENT_FRAME_RATE_STATISTICS_H
00039 
00040 #include <amire/common/Defines.h>
00041 
00042 namespace amire {
00043   namespace common {
00047     class AMIRE_EXPORT_API FrameRateStatistics : public virtual osg::Referenced {
00048     private:
00049       int frames;
00050       long beginClock;
00051       int lastFrames;
00052       long lastClock;
00053       double frameRate;
00054 
00055     public:
00059       FrameRateStatistics();
00060 
00061       virtual ~FrameRateStatistics();
00062 
00066       void reset();
00067 
00071       void frame();
00072 
00076       int getFrames();
00077 
00081       double getAbsoluteFrameRate();
00082 
00086       bool nextFrameRate();
00087 
00091       double getFramesRate();
00092     };
00093   }
00094 }
00095 #endif

Generated on Tue May 20 17:23:52 2003 for AMIRE-Framework by doxygen1.3