1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

Everywhere: Use ElapsedTimer::elapsed_time() for comparisons

Simplify a lot of uses of ElapsedTimer by converting the callers to
elapsed_time from elapsed, as the AK::Time returned is better for unit
conversions and comparisons against constants.
This commit is contained in:
Andrew Kaster 2023-01-01 22:38:53 -07:00 committed by Linus Groh
parent 4afa6e264c
commit ddf348daeb
8 changed files with 22 additions and 12 deletions

View file

@ -22,7 +22,7 @@ public:
static void test_signal_handler(int signal)
{
auto actual_duration = Time::from_milliseconds(SuccessContext::signal_timer.elapsed());
auto actual_duration = SuccessContext::signal_timer.elapsed_time();
auto expected_duration = SuccessContext::timer_value;
// Add a small buffer to allow for latency on the system.