| 73 | } |
| 74 | |
| 75 | F64 endHighResolutionTimer(U64 time) |
| 76 | { |
| 77 | if (!sQueryPerformanceInit) |
| 78 | { |
| 79 | sQueryPerformanceInit = true; |
| 80 | QueryPerformanceFrequency((LARGE_INTEGER*)&sQueryPerformanceFrequency); |
| 81 | } |
| 82 | |
| 83 | U64 current; |
| 84 | QueryPerformanceCounter((LARGE_INTEGER*)¤t); |
| 85 | |
| 86 | return ((1000.0 * static_cast<F64>(current-time)) / static_cast<F64>(sQueryPerformanceFrequency)); |
| 87 | } |
| 88 | |
| 89 | #elif defined(TORQUE_OS_MAC) |
| 90 |