TIME(1) | User Commands | TIME(1) |
time, ptime - time a command
time [-p] command
ptime [-p] command
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.
Ptime performs a similar task using the /proc file system, but does not include the time values of child processes of command.
Both time and ptime accept the following option:
If the specified command could not get found, time and ptime exit with a status of 127. If the command was found, but could not get executed, the exit status is 126.
sh(1), times(2), proc(5)
Ptime prints values in milliseconds, but the practical accuracy depends on the system clock.
3/10/03 | Heirloom Toolchest |