mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +00:00
Shell: Use ElapsedTimer::start_new()
This commit is contained in:
parent
5df74c99ab
commit
f6d179b304
Notes:
sideshowbarker
2024-07-18 04:06:59 +09:00
Author: https://github.com/bgianfo
Commit: f6d179b304
Pull-request: https://github.com/SerenityOS/serenity/pull/9999
Reviewed-by: https://github.com/awesomekling ✅
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