sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

time.1 (790B)


      1 .Dd 2015-10-08
      2 .Dt TIME 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm time
      6 .Nd time a command
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl p
     10 .Ar cmd
     11 .Op Ar arg ...
     12 .Sh DESCRIPTION
     13 .Nm
     14 executes
     15 .Ar cmd
     16 and writes timing statistics to stderr after it finishes.
     17 The statistics include the elapsed real time
     18 between invocation and termination and the user
     19 and system CPU time (see
     20 .Xr times 2 ) .
     21 .Sh OPTIONS
     22 .Bl -tag -width Ds
     23 .It Fl p
     24 Use the format "real %f\enuser %f\ensys %f\en" for printing.
     25 This is the default.
     26 .El
     27 .Sh EXIT STATUS
     28 .Bl -tag -width Ds
     29 .It 0
     30 .Ar cmd
     31 executed successfully.
     32 .It 1
     33 Internal error.
     34 .It 126
     35 .Ar cmd
     36 was found but could not be executed.
     37 .It 127
     38 .Ar cmd
     39 could not be found.
     40 .El
     41 .Sh SEE ALSO
     42 .Xr times 2 ,
     43 .Xr waitpid 2
     44 .Sh STANDARDS
     45 The
     46 .Nm
     47 utility is compliant with the
     48 .St -p1003.1-2013
     49 specification.