time(1)
NAME
time − time a command
SYNOPSIS
time command
AVAILABILITY
SUNWaccu
DESCRIPTION
The 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 standard error.
EXAMPLES
The two examples here show the differences between the csh version of time and the version in /usr/bin/time. These examples assume that csh is the shell in use.
example % time wc /usr/share/man/man1/csh.1
3007 10123 62335 /usr/share/man/man1/csh.1
0.0u 0.0s 0:00 0% 0+0k 0+0io 0pf+0w
example % /usr/bin/time wc /usr/share/man/man1/csh.1
3007 10123 62335 /usr/share/man/man1/csh.1
real 0.1
user 0.0
sys 0.1
example%
SEE ALSO
BUGS
Elapsed time is accurate to the second, while the CPU times are measured to the 50th second. Thus the sum of the CPU times can be up to a second larger than the elapsed time.
When the command being timed is interrupted, the timing values displayed may not always be accurate.
SunOS 5.1 — Last change: 26 Sep 1992