mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
20 lines
449 B
Plaintext
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`
|