TIME(1) COMMAND REFERENCE TIME(1)
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.
The times are printed on the diagnostic output stream
(standard error).
The signals interrupt, quit, and terminate are ignored.
EXAMPLES
The following example runs the command ls(1) with some
options and prints the amount of time it took to run the
command:
time ls -al
RETURN VALUE
The exit status returned is that of the command being timed.
If the command does not exist, the exit status is NP_ERR.
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[NP_ERR] An error occurred that was not a system
error. Execution terminated.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
CAVEATS
Elapsed time is accurate to the second, while the CPU times
are measured to the 60th second. Thus, the sum of the CPU
times can be up to a second larger than the elapsed time.
SEE ALSO
ls(1) and ctime(3c).
Printed 4/6/89 1
%%index%%
na:240,73;
sy:313,162;
de:475,540;
ex:1015,255;
rv:1270,685;
ca:1955,271;
se:2226,130;
%%index%%000000000120