mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 04:42:16 +00:00
19 lines
427 B
Plaintext
19 lines
427 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.
|
|
> 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`
|