Files
cheatsheet-tldr/tldr/time
2025-12-17 00:21:28 +00:00

20 lines
449 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# time
> Measure how long a command took to run.
> Note: `time` can either exist as a shell builtin, a standalone program, or both.
> See also: `times`.
> 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`