diff options
| author | Stefan Boberg <[email protected]> | 2021-10-05 18:10:19 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-05 18:10:19 +0200 |
| commit | 09fa320db4c7727c04eb88f5d19c4c1a3b2189e8 (patch) | |
| tree | 0d0649b08d8ee479287e8ef4cc6f2507a74f9ed5 /zencore/timer.cpp | |
| parent | http: Exclude iothreadpool from compilation on non-Windows (diff) | |
| parent | Pass logger from Zen client to session instead from spdlog registry. (diff) | |
| download | zen-09fa320db4c7727c04eb88f5d19c4c1a3b2189e8.tar.xz zen-09fa320db4c7727c04eb88f5d19c4c1a3b2189e8.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen into main
Diffstat (limited to 'zencore/timer.cpp')
| -rw-r--r-- | zencore/timer.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zencore/timer.cpp b/zencore/timer.cpp index 5d30d9b29..9180519bd 100644 --- a/zencore/timer.cpp +++ b/zencore/timer.cpp @@ -69,6 +69,22 @@ GetHifreqTimerFrequencySafe() } ////////////////////////////////////////////////////////////////////////// + +uint64_t detail::g_LofreqTimerValue = GetHifreqTimerValue(); + +void +UpdateLofreqTimerValue() +{ + detail::g_LofreqTimerValue = GetHifreqTimerValue(); +} + +uint64_t +GetLofreqTimerFrequency() +{ + return GetHifreqTimerFrequencySafe(); +} + +////////////////////////////////////////////////////////////////////////// // // Testing related code follows... // |