| 5 | #include "Timer.h" |
| 6 | |
| 7 | Timer::Timer() : time_elapsed(0), system_milliseconds(0), start_time(0), end_time(0), last_update(0), num_updates(0), paused_time(0), offset(0), paused_state(false), lock_state(false), lock_rate(0) |
| 8 | { |
| 9 | #ifdef _WIN32 |
| 10 | // According to Microsoft, QueryPerformanceXXX API is perfectly |
| 11 | //fine for Windows 7+ systems, and use the highest appropriate counter. |
| 12 | //this only need to be done once. |
| 13 | ::QueryPerformanceFrequency(&win_frequency); |
| 14 | #endif |
| 15 | } |
| 16 | |
| 17 | |
| 18 | void Timer::start() |
nothing calls this directly
no outgoing calls
no test coverage detected