animationmgr: avoid redundant ticks
This commit is contained in:
parent
b925f1b497
commit
a077b7a92e
5 changed files with 52 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue