Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 707 Bytes

time.md

File metadata and controls

39 lines (26 loc) · 707 Bytes

time

time command execution


References

  • man time

Synopsis

time [-lp] utility

Description

The time utility executes and times utility. After the utility finishes, time writes the total time elapsed, the time consumed by system overhead, and the time used to execute utility to the standard error stream. Times are reported in seconds.

Options

  • -l The contents of the rusage structure are printed.
  • -p The output is formatted as specified by IEEE Std 1003.2-1992 (POSIX.2).

Some shells may provide a builtin time command which is similar or identical to this utility.

Usage

time sleep 2
sleep 2  0.00s user 0.00s system 0% cpu 2.014 total