

Public Member Functions | |
| double | getTime () const |
| void | reset () |
| WindowsTimer () | |
| ~WindowsTimer () | |
Private Attributes | |
| LARGE_INTEGER | freq |
| LARGE_INTEGER | start |
|
|
Definition at line 27 of file wintimer.cpp. 00028 {
00029 QueryPerformanceFrequency(&freq);
00030 reset();
00031 }
|
|
|
Definition at line 33 of file wintimer.cpp. 00034 {
00035 }
|
|
|
Implements Timer. Definition at line 37 of file wintimer.cpp. 00038 {
00039 LARGE_INTEGER t;
00040 QueryPerformanceCounter(&t);
00041 return (double) (t.QuadPart - start.QuadPart) / (double) freq.QuadPart;
00042 }
|
|
|
Implements Timer. Definition at line 44 of file wintimer.cpp. References start. Referenced by WindowsTimer(). 00045 {
00046 QueryPerformanceCounter(&start);
00047 }
|
|
|
Definition at line 22 of file wintimer.cpp. Referenced by getTime(), and WindowsTimer(). |
|
|
Definition at line 23 of file wintimer.cpp. |
1.4.1