LibCore: Add ElapsedTimer::elapsed_milliseconds()

It does the same thing as elapsed(), but has a clearer name.
The hope is we'll move everything to the new name over time
and then remove the old name.
This commit is contained in:
Nico Weber 2023-05-24 08:32:20 -04:00 committed by Andreas Kling
commit 197c5729d1
Notes: sideshowbarker 2024-07-17 11:29:41 +09:00
2 changed files with 8 additions and 2 deletions

View file

@ -29,7 +29,7 @@ void ElapsedTimer::reset()
m_origin_time = {};
}
i64 ElapsedTimer::elapsed() const
i64 ElapsedTimer::elapsed_milliseconds() const
{
return elapsed_time().to_milliseconds();
}