mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-01 13:49:05 +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;
|
int exit_code = 1;
|
||||||
for (int i = 0; i < number_of_iterations; ++i) {
|
for (int i = 0; i < number_of_iterations; ++i) {
|
||||||
Core::ElapsedTimer timer;
|
auto timer = Core::ElapsedTimer::start_new();
|
||||||
timer.start();
|
|
||||||
for (auto& job : run_commands(commands)) {
|
for (auto& job : run_commands(commands)) {
|
||||||
block_on_job(job);
|
block_on_job(job);
|
||||||
exit_code = job.exit_code();
|
exit_code = job.exit_code();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue