Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)time.1 6.1 (Berkeley) 04/29/85
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)time.1 6.1 (Berkeley) 04/29/85
TIME 1 ""
C 4 NAME
time - time a command
SYNOPSIS
time command
DESCRIPTION
The
given command is executed; after it is complete,
time prints the elapsed time during the command, the time
spent in the system, and the time spent in execution
of the command.
Times are reported in seconds.
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.
Time is built in to csh (1), using a different output format.
BUGS
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.
Time is a built-in command to csh (1), with a much different syntax. This command is available as ``/bin/time'' to csh users.