[BACK]Return to time.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / time

Annotation of src/usr.bin/time/time.1, Revision 1.5

1.5     ! aaron       1: .\"    $OpenBSD: time.1,v 1.4 1998/10/30 00:24:39 aaron Exp $
1.1       deraadt     2: .\"    $NetBSD: time.1,v 1.5 1994/12/08 09:36:57 jtc Exp $
                      3: .\"
                      4: .\" Copyright (c) 1980, 1991, 1993
                      5: .\"    The Regents of the University of California.  All rights reserved.
                      6: .\"
                      7: .\" Redistribution and use in source and binary forms, with or without
                      8: .\" modification, are permitted provided that the following conditions
                      9: .\" are met:
                     10: .\" 1. Redistributions of source code must retain the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer.
                     12: .\" 2. Redistributions in binary form must reproduce the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer in the
                     14: .\"    documentation and/or other materials provided with the distribution.
                     15: .\" 3. All advertising materials mentioning features or use of this software
                     16: .\"    must display the following acknowledgement:
                     17: .\"    This product includes software developed by the University of
                     18: .\"    California, Berkeley and its contributors.
                     19: .\" 4. Neither the name of the University nor the names of its contributors
                     20: .\"    may be used to endorse or promote products derived from this software
                     21: .\"    without specific prior written permission.
                     22: .\"
                     23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     26: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     33: .\" SUCH DAMAGE.
                     34: .\"
                     35: .\"     @(#)time.1     8.1 (Berkeley) 6/6/93
                     36: .\"
                     37: .Dd June 6, 1993
                     38: .Dt TIME 1
                     39: .Os
                     40: .Sh NAME
                     41: .Nm time
                     42: .Nd time command execution
                     43: .Sh SYNOPSIS
                     44: .Nm time
                     45: .Op Fl lp
                     46: .Ar utility
                     47: .Sh DESCRIPTION
                     48: The
                     49: .Nm time
                     50: utility
                     51: executes and
                     52: times
                     53: .Ar utility .
                     54: After the
                     55: .Ar utility
                     56: finishes,
                     57: .Nm time
                     58: writes the total time elapsed,
                     59: the time consumed by system overhead,
                     60: and the time used to execute
                     61: .Ar utility
                     62: to the standard error stream.
                     63: Times are reported in seconds.
                     64: .Pp
                     65: Available options:
                     66: .Bl -tag -width Ds
                     67: .It Fl l
                     68: The contents of the
                     69: .Em rusage
                     70: structure are printed.
                     71: .It Fl p
                     72: The output is formatted as specified by
                     73: .St -p1003.2-92 .
                     74: .El
                     75: .Pp
                     76: .Xr csh 1
1.5     ! aaron      77: has its own and syntactically different built-in version of
1.1       deraadt    78: .Nm time.
                     79: The utility described here
                     80: is available as
                     81: .Pa /usr/bin/time
                     82: to
                     83: .Xr csh
                     84: users.
                     85: .Sh DIAGNOSTICS
                     86: The
                     87: .Nm time
                     88: utility shall exit with one of the following values:
                     89: .Bl -tag -width indent
                     90: .It 1-125
                     91: An error occurred in the
                     92: .Nm time
                     93: utility.
                     94: .It 126
                     95: The
                     96: .Ar utility
                     97: was found but could not be invoked.
                     98: .It 127
                     99: The
                    100: .Ar utility
                    101: could not be found.
                    102: .El
                    103: .Pp
                    104: Otherwise, the exit status of
                    105: .Nm time
                    106: shall be that of
                    107: .Ar utility .
                    108: .Sh SEE ALSO
1.4       aaron     109: .Xr csh 1 ,
1.3       deraadt   110: .Xr getrusage 2
1.1       deraadt   111: .Sh FILES
1.3       deraadt   112: .Bl -tag -width /usr/include/sys/resource.h -compact
                    113: .It Pa /usr/include/sys/resource.h
1.1       deraadt   114: .El
                    115: .Sh STANDARDS
                    116: The
                    117: .Nm
                    118: utility conforms to
                    119: .St -p1003.2-92 .
                    120: .Sh BUGS
                    121: The granularity of seconds on microprocessors is crude and
                    122: can result in times being reported for CPU usage which are too large by
                    123: a second.