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:
parent
5df74c99ab
commit
f6d179b304
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue