mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Add Timer::restart() convenience API
This simply restarts the timer with the existing millisecond interval.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user