aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-05 18:10:19 +0200
committerStefan Boberg <[email protected]>2021-10-05 18:10:19 +0200
commit09fa320db4c7727c04eb88f5d19c4c1a3b2189e8 (patch)
tree0d0649b08d8ee479287e8ef4cc6f2507a74f9ed5 /zencore/include
parenthttp: Exclude iothreadpool from compilation on non-Windows (diff)
parentPass logger from Zen client to session instead from spdlog registry. (diff)
downloadzen-09fa320db4c7727c04eb88f5d19c4c1a3b2189e8.tar.xz
zen-09fa320db4c7727c04eb88f5d19c4c1a3b2189e8.zip
Merge branch 'main' of https://github.com/EpicGames/zen into main
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/timer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/zencore/include/zencore/timer.h b/zencore/include/zencore/timer.h
index 693b6daaa..e4ddc3505 100644
--- a/zencore/include/zencore/timer.h
+++ b/zencore/include/zencore/timer.h
@@ -38,6 +38,21 @@ private:
uint64_t m_StartValue;
};
+// Low frequency timers
+
+namespace detail {
+ extern ZENCORE_API uint64_t g_LofreqTimerValue;
+} // namespace detail
+
+inline uint64_t
+GetLofreqTimerValue()
+{
+ return detail::g_LofreqTimerValue;
+}
+
+ZENCORE_API void UpdateLofreqTimerValue();
+ZENCORE_API uint64_t GetLofreqTimerFrequency();
+
void timer_forcelink(); // internal
} // namespace zen