summaryrefslogtreecommitdiff
path: root/Userland/Shell/Builtin.cpp
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-12 08:48:23 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-09-12 17:24:44 +0000
commitf6d179b30430679a4f90bf3352633e711039fa0f (patch)
treea74652b8b29a4d0f288c877d3e9f41335c7c1c07 /Userland/Shell/Builtin.cpp
parent5df74c99ab165726c751541a0319f547b17d1e27 (diff)
downloadserenity-f6d179b30430679a4f90bf3352633e711039fa0f.zip
Shell: Use ElapsedTimer::start_new()
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();