timer.h

00001 /*
00002 * "PS2" Application Framework
00003 *
00004 * University of Abertay Dundee
00005 * May be used for educational purposed only
00006 *
00007 * Author - Dr Henry S Fortuna
00008 *
00009 * $Revision: 1.2 $
00010 * $Date: 2007/08/19 12:45:13 $
00011 *
00012 */
00013 
00014 #ifndef _TIMER_H_
00015 #define _TIMER_H_
00016 
00017 
00018 // Timer 3 uses the HBLANK to count 
00019 // (its the only default timer that is slow enough 
00020 // for us to sample in order to calculate the FPS)
00021 
00022 
00023 class CTimer
00024 {
00025 public:
00026         CTimer();
00027         ~CTimer();
00028         
00029         unsigned int    GetTimeDelta(void);
00030         void                    PrimeTimer(void);
00031         float                   GetFPS(void);
00032         
00033 private:
00034         
00035         unsigned int m_LastTime;
00036         unsigned int m_Time;
00037         unsigned int m_Change;
00038         unsigned int m_VideoMode;
00039 };
00040 
00041 
00042 #endif
00043 

Generated on Sun May 18 21:45:09 2008 for PS2X by  doxygen 1.5.4