diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-08-05 23:29:33 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-08-05 23:29:33 +0200 |
| commit | a077b7a92e87a3edd1cebb9bdd4c4fa3ec3d7bb7 (patch) | |
| tree | 50ad00b5bf146872926fa6e67f791096670fd0d9 /src/helpers/Timer.cpp | |
| parent | b925f1b49774b38ab670815e78726fe16295d0d9 (diff) | |
animationmgr: avoid redundant ticks
Diffstat (limited to 'src/helpers/Timer.cpp')
| -rw-r--r-- | src/helpers/Timer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<std::chrono::milliseconds>(getDuration()).count() / 1000.f; +} + +const std::chrono::system_clock::time_point& CTimer::chrono() const { + return m_tpLastReset; }
\ No newline at end of file |
