time
PURPOSE
Times the execution of a command.
SYNOPSIS
time command
DESCRIPTION
The time command times the execution of the named
command. time writes to standard error the elapsed time
of the command, the system time used, and the execution
time, in seconds.
EXAMPLES
1. To measure the time required to run a program:
time a.out
This runs the program a.out and writes to the
standard error output the amount of real, system, and
user time that it uses:
real 10.5
user 0.3
sys 3.6
2. To save a record of the time information in a file:
time a.out 2> a.time
RELATED INFORMATION
The following commands: "csh" and "timex."
Note: The csh command contains a built-in subcommand
named time. The command and subcommand do not neces-
sarily work the same way. For information on the subcom-
mand, see the csh command.
The times system call in AIX Operating System Technical
Reference.