time — Time a Simple Command

Synopsis

/usr/bin/time [-p] command [argument...] 

Description

Use the time command to compute the time it takes a command to execute. time writes a message to standard error that lists timing statistics for command and the optional argument s. The message includes the following information.

  • The elapsed (real) time between invocation of command and its termination.

  • The user CPU time, equivalent to the sum of the tms_utime and tms_cutime fields returned by the times(2) function for the process in which command is executed.

  • The system CPU time, equivalent to the sum of the tms_stime and tms_cstime fields returned by the times() function for the process in which command is executed.

  • When time is used as part of a pipeline, ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.