From a077b7a92e87a3edd1cebb9bdd4c4fa3ec3d7bb7 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sat, 5 Aug 2023 23:29:33 +0200 Subject: animationmgr: avoid redundant ticks --- src/helpers/Timer.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/helpers/Timer.hpp') diff --git a/src/helpers/Timer.hpp b/src/helpers/Timer.hpp index 7b5bfc9d..4ab0d294 100644 --- a/src/helpers/Timer.hpp +++ b/src/helpers/Timer.hpp @@ -4,9 +4,10 @@ class CTimer { public: - void reset(); - float getSeconds(); - int getMillis(); + void reset(); + float getSeconds(); + int getMillis(); + const std::chrono::system_clock::time_point& chrono() const; private: std::chrono::system_clock::time_point m_tpLastReset; -- cgit v1.2.3