time command execution
utility executes and times the
. After the
writes to the standard error stream,
(in seconds): the total time elapsed, the time used to execute the
process and the time consumed by
The following options are available:
- If the
-o flag is used, append to the
specified file rather than overwriting it. Otherwise, this option has no
- Print times in a human friendly format. Times are printed in minutes,
hours, etc. as appropriate.
- The contents of the rusage structure are
printed as well.
- Write the output to file instead of
stderr. If file exists and the
-a flag is not specified, the file will
time output POSIX.2 compliant
(each time is printed on its own line).
Some shells may provide a builtin
command which is similar or identical to this utility. Consult the
(see the status argument for
signal, the current time the given command is running will be written to the
environment variable is used to
locate the requested utility
if the name
contains no ‘
could be timed successfully, its
exit status is returned. If utility
terminated abnormally, a warning message is output to stderr. If the
was found but could not be run, the
exit status is 126. If no utility
found at all, the exit status is 127. If
encounters any other error, the exit
status is between 1 and 125 included.
utility is expected to conform to
ISO/IEC 9945-2:1993 (``POSIX'').
utility appeared in
Version 3 AT&T UNIX