| 117 | } |
| 118 | |
| 119 | SC::Time::HighResolutionCounter::HighResolutionCounter() |
| 120 | { |
| 121 | part1 = 0; |
| 122 | #if SC_PLATFORM_WINDOWS |
| 123 | LARGE_INTEGER queryPerformanceFrequency; |
| 124 | // Since WinXP this is guaranteed to succeed |
| 125 | QueryPerformanceFrequency(&queryPerformanceFrequency); |
| 126 | part2 = queryPerformanceFrequency.QuadPart; |
| 127 | #else |
| 128 | part2 = 0; |
| 129 | #endif |
| 130 | } |
| 131 | |
| 132 | SC::Time::HighResolutionCounter& SC::Time::HighResolutionCounter::snap() |
| 133 | { |
nothing calls this directly
no outgoing calls
no test coverage detected