mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
Shell: Use String::join for the command in timing report
This commit is contained in:
parent
b28b4c643e
commit
19aeb71d15
1 changed files with 2 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "Shell/Formatter.h"
|
#include "Shell/Formatter.h"
|
||||||
#include <AK/LexicalPath.h>
|
#include <AK/LexicalPath.h>
|
||||||
#include <AK/ScopeGuard.h>
|
#include <AK/ScopeGuard.h>
|
||||||
|
#include <AK/String.h>
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/EventLoop.h>
|
#include <LibCore/EventLoop.h>
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
|
@ -951,10 +952,7 @@ int Shell::builtin_time(int argc, const char** argv)
|
||||||
|
|
||||||
warnln("Timing report:");
|
warnln("Timing report:");
|
||||||
warnln("==============");
|
warnln("==============");
|
||||||
warn("Command: ");
|
warnln("Command: {}", String::join(' ', args));
|
||||||
for (auto& string : args)
|
|
||||||
warn("{} ", string);
|
|
||||||
warnln("");
|
|
||||||
warnln("Average time: {} ms", average);
|
warnln("Average time: {} ms", average);
|
||||||
warnln("Excluding first: {} ms", average_excluding_first);
|
warnln("Excluding first: {} ms", average_excluding_first);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue