00001 #ifndef __TIMER_H_ICLUDED__ 00002 #define __TIMER_H_ICLUDED__ 00003 00004 #include <windows.h> 00005 #include <WINBASE.H> 00006 /* 00007 typedef union _LARGE_INTEGER 00008 { 00009 struct 00010 { 00011 DWORD LowPart; 00012 DWORD HighPart; 00013 }; 00014 LONGLONG QuadPart; 00015 } LARGE_INTERGER; 00016 */ 00017 00018 class HiResTimer 00019 { 00020 public: 00021 HiResTimer(); 00022 void Init(); 00023 float GetElapsedSeconds(); 00024 00025 long long timer_freq; 00026 long long last_time; 00027 long long current_time; 00028 float difference_time; 00029 00030 }; 00031 #endif
1.4.1