[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.2

1.2     ! deraadt     1: .\"    $OpenBSD: time.1,v 1.5 1994/12/08 09:36:57 jtc 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: The
                     77: .Xr csh 1
                     78: has its own and syntactically different builtin version of
                     79: .Nm time.
                     80: The utility described here
                     81: is available as
                     82: .Pa /usr/bin/time
                     83: to
                     84: .Xr csh
                     85: users.
                     86: .Sh DIAGNOSTICS
                     87: The
                     88: .Nm time
                     89: utility shall exit with one of the following values:
                     90: .Bl -tag -width indent
                     91: .It 1-125
                     92: An error occurred in the
                     93: .Nm time
                     94: utility.
                     95: .It 126
                     96: The
                     97: .Ar utility
                     98: was found but could not be invoked.
                     99: .It 127
                    100: The
                    101: .Ar utility
                    102: could not be found.
                    103: .El
                    104: .Pp
                    105: Otherwise, the exit status of
                    106: .Nm time
                    107: shall be that of
                    108: .Ar utility .
                    109: .Sh SEE ALSO
                    110: .Xr csh 1
                    111: .Sh FILES
                    112: .Bl -tag -width /usr/include/sys/h/resource.h -compact
                    113: .It Pa /usr/include/sys/h/resource.h
                    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.