time Command Examples
Measure how long a command took to run. Note:
time
can either exist as a shell builtin, a standalone program or both. More information: https://manned.org/time.
- Run the
command
and print the time measurements tostdout
:
time {{command}}
- Create a very simple stopwatch (only works in Bash):
time read