LibCore: Add Timer::restart() convenience API

This simply restarts the timer with the existing millisecond interval.
This commit is contained in:
Andreas Kling 2020-06-11 22:35:37 +02:00
commit 7bb4f3764c
Notes: sideshowbarker 2024-07-19 05:43:02 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -58,6 +58,11 @@ void Timer::start(int interval)
m_active = true;
}
void Timer::restart()
{
restart(m_interval);
}
void Timer::restart(int interval)
{
if (m_active)