1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

Shell: Use ElapsedTimer::start_new()

This commit is contained in:
Brian Gianforcaro 2021-09-12 08:48:23 -07:00 committed by Brian Gianforcaro
parent 5df74c99ab
commit f6d179b304

View file

@ -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();