ladybird/Userland/Shell
Andreas Kling b9ab7a5095 Shell: Support time -n <iterations>
You can now specify a number of iterations when timing a command.
The default value is 1 and behaves exactly as before.

If the iteration count is greater than 1, the command will be executed
that many times, and then you get a little timing report afterwards with
the average runtime per iteration, and also the average runtime
excluding the very first iteration. (Excluding the first iteration is
useful when it's slowed down by cold caches, etc.)

This is something I've been doing manually forever (running `time foo`
and then eyeballing the results to headmath an average) and this makes
that whole process so much nicer. :^)
2021-08-23 20:15:14 +02:00
..
Tests
AST.cpp
AST.h Shell: Improve the parsing of history event designators 2021-08-02 02:58:55 +04:30
Builtin.cpp Shell: Support time -n <iterations> 2021-08-23 20:15:14 +02:00
CMakeLists.txt
Execution.h
Formatter.cpp
Formatter.h
Forward.h
ImmediateFunctions.cpp
Job.cpp
Job.h
main.cpp Shell: Remove dbgln related to process group IDs 2021-08-12 22:42:50 +02:00
NodeVisitor.cpp
NodeVisitor.h
Parser.cpp AK: Move FormatParser definition from header to implementation file 2021-08-19 23:49:25 +02:00
Parser.h Shell: Make caller specify the string parsing end condition 2021-08-13 01:20:35 +04:30
Shell.cpp AK: Move FormatParser definition from header to implementation file 2021-08-19 23:49:25 +02:00
Shell.h
SyntaxHighlighter.cpp
SyntaxHighlighter.h