Deleted Added
sdiff udiff text old ( 50477 ) new ( 51090 )
full compact
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)time.1 8.1 (Berkeley) 6/6/93
33.\" $FreeBSD: head/usr.bin/time/time.1 50477 1999-08-28 01:08:13Z peter $
34.\"
35.Dd June 6, 1993
36.Dt TIME 1
37.Os BSD 4
38.Sh NAME
39.Nm time
40.Nd time command execution
41.Sh SYNOPSIS

--- 43 unchanged lines hidden (view full) ---

85.Fl a
86flag is not specified, the file will be overwritten.
87.It Fl p
88Makes
89.Nm
90output POSIX.2 compliant (each time is printed on its own line).
91.El
92.Pp
93Most shells (including
94.Xr csh 1 )
95have their own and syntactically different builtin version of
96.Nm time .
97The command described here
98is available as
99.Pa /usr/bin/time
100to users of those shells.
101.Sh DIAGNOSTICS
102If
103.Ar command
104could be timed successfully, its exit status is returned. In case
105.Ar command
106terminated abnormally, a warning message is output to stderr.
107If the
108.Ar command
109was found but could not be run, the exit status is 126.
110If no
111.Ar command
112could be found at all, the exit status is 127.
113If
114.Nm
115encounters any other error, the exit status is between 1 and 125
116included.
117.Sh SEE ALSO
118.Xr csh 1 ,
119.Xr getrusage 2 ,
120.Xr wait 2
121.Sh STANDARDS
122The
123.Nm
124utility is expected to conform to ISO/IEC 9945-2:1993 (``POSIX'').
125.Sh HISTORY
126A
127.Nm
128command appeared in
129.At v6 .