Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Timer.h

Go to the documentation of this file.
00001 
00007 #ifndef _TIMER_H_
00008 #define _TIMER_H_
00009 
00010 //#include <windows.h>
00011 #include "../Common/OS/Windows.h"
00012 #include "Log.h"
00013 
00014 class Timer {
00015         public:
00016                 void    init();
00017                 void    update();
00018                 float   getFrameTime();
00019                 int             getFPS();
00020                 double  getTime();
00021                 double  getFrequency();
00022 
00023         protected:
00024                 double  frequency;
00025                 __int64 startClock;
00026                 float   frameTime;
00027                 float   frameStart;
00028                 float   frameEnd;
00029                 float   fpsLimiter;
00030                 int             fps;
00031                 int             frameCount;
00032 };
00033 
00034 #endif

Generated on Sun Jun 5 15:47:05 2005 for Defacto by  doxygen 1.4.3