mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
LibCore: Enable elapsed time as AK::Time on a ElapsedTimer
This commit is contained in:
parent
e92b576cba
commit
1d4be9ca33
2 changed files with 7 additions and 0 deletions
|
@ -34,4 +34,9 @@ int ElapsedTimer::elapsed() const
|
|||
return diff.tv_sec * 1000 + diff.tv_usec / 1000;
|
||||
}
|
||||
|
||||
Time ElapsedTimer::elapsed_time() const
|
||||
{
|
||||
return Time::from_milliseconds(elapsed());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue