| 36 | #endif |
| 37 | |
| 38 | void Timer::Init() { |
| 39 | |
| 40 | #ifdef WIN64 |
| 41 | QueryPerformanceFrequency(&qwTicksPerSec); |
| 42 | QueryPerformanceCounter(&perfTickStart); |
| 43 | perfTicksPerSec = (double)qwTicksPerSec.QuadPart; |
| 44 | #else |
| 45 | tickStart=time(NULL); |
| 46 | #endif |
| 47 | |
| 48 | } |
| 49 | |
| 50 | double Timer::get_tick() { |
| 51 |