From f6d179b30430679a4f90bf3352633e711039fa0f Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 12 Sep 2021 08:48:23 -0700 Subject: [PATCH] Shell: Use ElapsedTimer::start_new() --- Userland/Shell/Builtin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index e3671d38e8..fabb96d0ca 100644 --- a/Userland/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp @@ -903,8 +903,7 @@ int Shell::builtin_time(int argc, const char** argv) int exit_code = 1; for (int i = 0; i < number_of_iterations; ++i) { - Core::ElapsedTimer timer; - timer.start(); + auto timer = Core::ElapsedTimer::start_new(); for (auto& job : run_commands(commands)) { block_on_job(job); exit_code = job.exit_code();