man(1) Manual page archive


     TIME(1)                                                   TIME(1)

     NAME
          time - time a command

     SYNOPSIS
          time [ -usrtdmfio ] [ -v ] command

     DESCRIPTION
          The given command is executed; after it is complete, time
          reports statistics about the program on its standard error
          output.  The statistics printed are controlled by the option
          string; the default is -usr; -v reports everything.  The
          statistics are:

          u    User cpu time consumed by the command

          s    System cpu time attributed to the command

          r    Real (clock) time taken by the command

          t    Average resident text size, in Kb.

          d    Average resident data size, in Kb.

          m    Maximum total resident size, in Kb.

          f    Number of page faults resulting in disk I/O.

          i    Number of disk blocks read.

          o    Number of disk blocks written.

          After the statistics, time prints a tab and the command, up
          to the fifth argument.  Times are reported in seconds.  The
          numbers are the sum of those for command and any children it
          spawns and waits for.

     SEE ALSO
          lcomp(1), prof(1)

     BUGS
          Elapsed time is accurate to the second, while the CPU times
          are measured to 1/60 second.  Thus the sum of the CPU times
          can be up to a second larger than the elapsed time.