From 1d70962892a6e3e1cacd3663b390bbdf81426984 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 25 Jun 2024 16:05:39 +0200 Subject: core: move to steady_clock where applicable avoid issues when system clock gets desynchronized or changed --- src/managers/eventLoop/EventLoopTimer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/managers/eventLoop/EventLoopTimer.hpp') diff --git a/src/managers/eventLoop/EventLoopTimer.hpp b/src/managers/eventLoop/EventLoopTimer.hpp index 73f5dc73..ad7d3986 100644 --- a/src/managers/eventLoop/EventLoopTimer.hpp +++ b/src/managers/eventLoop/EventLoopTimer.hpp @@ -8,11 +8,11 @@ class CEventLoopTimer { public: - CEventLoopTimer(std::optional timeout, std::function self, void* data)> cb_, void* data_); + CEventLoopTimer(std::optional timeout, std::function self, void* data)> cb_, void* data_); // if not specified, disarms. // if specified, arms. - void updateTimeout(std::optional timeout); + void updateTimeout(std::optional timeout); void cancel(); bool passed(); @@ -26,6 +26,6 @@ class CEventLoopTimer { private: std::function self, void* data)> cb; void* data = nullptr; - std::optional expires; + std::optional expires; bool wasCancelled = false; }; -- cgit v1.2.3