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.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/helpers/Timer.cpp') diff --git a/src/helpers/Timer.cpp b/src/helpers/Timer.cpp index 33162d30..6847567a 100644 --- a/src/helpers/Timer.cpp +++ b/src/helpers/Timer.cpp @@ -14,4 +14,8 @@ int CTimer::getMillis() { float CTimer::getSeconds() { return std::chrono::duration_cast(getDuration()).count() / 1000.f; +} + +const std::chrono::system_clock::time_point& CTimer::chrono() const { + return m_tpLastReset; } \ No newline at end of file -- cgit v1.2.3