mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
Shell: Use String::join for the command in timing report
This commit is contained in:
parent
b28b4c643e
commit
19aeb71d15
Notes:
sideshowbarker
2024-07-18 05:20:27 +09:00
Author: https://github.com/doctor-rd Commit: https://github.com/SerenityOS/serenity/commit/19aeb71d154 Pull-request: https://github.com/SerenityOS/serenity/pull/9586
1 changed files with 2 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "Shell/Formatter.h"
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/ScopeGuard.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
#include <LibCore/File.h>
|
||||
|
@ -951,10 +952,7 @@ int Shell::builtin_time(int argc, const char** argv)
|
|||
|
||||
warnln("Timing report:");
|
||||
warnln("==============");
|
||||
warn("Command: ");
|
||||
for (auto& string : args)
|
||||
warn("{} ", string);
|
||||
warnln("");
|
||||
warnln("Command: {}", String::join(' ', args));
|
||||
warnln("Average time: {} ms", average);
|
||||
warnln("Excluding first: {} ms", average_excluding_first);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue