2025-03-14 21:59:59 -06:00
|
|
|
# time
|
|
|
|
|
|
|
|
|
|
> Measure how long a command took to run.
|
|
|
|
|
> Note: `time` can either exist as a shell builtin, a standalone program or both.
|
2025-06-28 19:25:29 -06:00
|
|
|
> See also: `times`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/time>.
|
|
|
|
|
|
|
|
|
|
- Run the `command` and print the time measurements to `stdout`:
|
|
|
|
|
|
|
|
|
|
`time {{command}}`
|
|
|
|
|
|
|
|
|
|
- Create a very simple stopwatch (only works in Bash):
|
|
|
|
|
|
|
|
|
|
`time read`
|