2014-06-11 16:28:05 -07:00
|
|
|
# time
|
|
|
|
|
2023-08-09 16:16:13 +02:00
|
|
|
> Measure how long a command took to run.
|
|
|
|
> Note: `time` can either exist as a shell builtin, a standalone program or both.
|
2021-10-19 16:11:22 -04:00
|
|
|
> More information: <https://manned.org/time>.
|
2014-06-11 16:28:05 -07:00
|
|
|
|
2023-08-09 16:16:13 +02:00
|
|
|
- Run the `command` and print the time measurements to `stdout`:
|
2014-06-11 16:28:05 -07:00
|
|
|
|
2023-08-09 16:16:13 +02:00
|
|
|
`time {{command}}`
|
2024-10-11 22:51:03 +03:00
|
|
|
|
2024-10-14 11:30:54 +02:00
|
|
|
- Create a very simple stopwatch (only works in Bash):
|
2024-10-11 22:51:03 +03:00
|
|
|
|
|
|
|
`time read`
|