time command execution
time executes and times
utility. After the utility
time writes the total time elapsed, the
time consumed by system overhead, and the time used to execute
utility to the standard error stream. Times are
reported in seconds.
The options are as follows:
- The contents of the rusage structure are printed.
- The output is formatted as specified by IEEE Std 1003.2-1992 (“POSIX.2”).
time utility exits with one of the
- An error occurred in the
- The utility was found but could not be invoked.
- The utility could not be found.
Otherwise, the exit status of
be that of utility.
csh(1), ksh(1), getrusage(2)
time utility is compliant with the
IEEE Std 1003.1-2008 (“POSIX.1”)
The flag [
-l] is an extension to that
time also exists as a built-in to
with a different syntax.
time command appeared in
Version 3 AT&T UNIX.