1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

Shell: Use String::join for the command in timing report

This commit is contained in:
Ralf Donau 2021-08-23 22:22:29 +02:00 committed by Andreas Kling
parent b28b4c643e
commit 19aeb71d15

View file

@ -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);
}