HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

time — Measure how long a command took to run. Note: `time` can either exist as a shell builtin, a standalo

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandtooklongclitimehowmeasure

Problem

How to use the time command: 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>.

Solution

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

Code Snippets

Run the `command` and print the time measurements to `stdout`

time {{command}}

Create a very simple stopwatch (only works in Bash)

time read

Context

tldr-pages: common/time

Revisions (0)

No revisions yet.