BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / time.0
TIME(1) UNIX Programmer's Manual TIME(1)
N\bNA\bAM\bME\bE
time - time a command
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
t\bti\bim\bme\be [-l] command
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The given command is executed; after it is complete, _\bt_\bi_\bm_\be
prints the elapsed time during the command, the time spent
in the system, and the time spent in execution of the com-
mand. Times are reported in seconds. If the -\b-l\bl option is
supplied, the contents of the _\br_\bu_\bs_\ba_\bg_\be structure are printed
as well.
On a PDP-11, the execution time can depend on what kind of
memory the program happens to land in; the user time in MOS
is often half what it is in core.
The times are printed on the diagnostic output stream,
``stderr''.
_\bT_\bi_\bm_\be is a built-in command to _\bc_\bs_\bh(1), with a much different
syntax. This command is available as ``/bin/time'' to _\bc_\bs_\bh
users.
B\bBU\bUG\bGS\bS
Elapsed time is accurate to the second, while the CPU times
are measured to the 100th second. Thus the sum of the CPU
times can be up to a second larger than the elapsed time.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
include/sys/h/resource.h
Printed 7/9/88 November 17, 1987 1