1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/time.md

14 lines
334 B
Markdown
Raw Normal View History

2014-06-11 16:28:05 -07:00
# time
> 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>.
2014-06-11 16:28:05 -07:00
- Run the `command` and print the time measurements to `stdout`:
2014-06-11 16:28:05 -07:00
`time {{command}}`
2024-10-11 22:51:03 +03:00
- Create a very simple stopwatch (only works in Bash):
2024-10-11 22:51:03 +03:00
`time read`