summaryrefslogtreecommitdiff
path: root/Userland/Shell/Builtin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Shell/Builtin.cpp')
-rw-r--r--Userland/Shell/Builtin.cpp3
1 files changed, 1 insertions, 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();