mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Shell: Add total time to builtin_time Timing Report
This commit is contained in:
parent
9d964af761
commit
6ec4fd9d3c
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/NotStirred 🔰 Commit: https://github.com/SerenityOS/serenity/commit/6ec4fd9d3ca Pull-request: https://github.com/SerenityOS/serenity/pull/12260
@ -922,7 +922,7 @@ int Shell::builtin_time(int argc, const char** argv)
|
||||
for (size_t i = 1; i < iteration_times.size(); i++)
|
||||
iteration_times_excluding_first.add(iteration_times.values()[i]);
|
||||
|
||||
warnln("Timing report:");
|
||||
warnln("Timing report: {} ms", iteration_times.sum());
|
||||
warnln("==============");
|
||||
warnln("Command: {}", String::join(' ', args));
|
||||
warnln("Average time: {:.2} ms (median: {}, stddev: {:.2}, min: {}, max:{})",
|
||||
|
Loading…
Reference in New Issue
Block a user