| 7 | namespace pmon::util |
| 8 | { |
| 9 | int64_t GetCurrentTimestamp() noexcept |
| 10 | { |
| 11 | LARGE_INTEGER timestamp; |
| 12 | if (!QueryPerformanceCounter(×tamp)) { |
| 13 | pmlog_error("qpc failed").hr().first(20); |
| 14 | } |
| 15 | return (int64_t)timestamp.QuadPart; |
| 16 | } |
| 17 | double GetTimestampFrequencyDouble() noexcept |
| 18 | { |
| 19 | return double(GetTimestampFrequencyUint64()); |
no outgoing calls
no test coverage detected