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:
parent
4afa6e264c
commit
ddf348daeb
8 changed files with 22 additions and 12 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue