File:  [CSRG BSD Unix] / 43BSDReno / usr.bin / time / time.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)time.1	6.2 (Berkeley) 11/17/87
.\"
.TH TIME 1 "November 17, 1987"
.UC 4
.SH NAME
time \- time a command
.SH SYNOPSIS
.B time
[-l] command
.SH DESCRIPTION
The given command is executed; after it is complete, \fItime\fP
prints the elapsed time during the command, the time spent in the
system, and the time spent in execution of the command.  Times are
reported in seconds.  If the \fB-l\fP option is supplied, the
contents of the \fIrusage\fP structure are printed as well.
.PP
On a PDP-11, the execution time can depend on what kind of memory
the program happens to land in; the user time in MOS is often half
what it is in core.
.PP
The times are printed on the diagnostic output stream, ``stderr''.
.PP
\fITime\fP is a built-in command to \fIcsh\fP(1), with a much different
syntax.  This command is available as ``/bin/time'' to \fIcsh\fP users.
.SH BUGS
Elapsed time is accurate to the second, while the CPU times are measured
to the 100th second.  Thus the sum of the CPU times can be up to a second
larger than the elapsed time.
.SH "SEE ALSO"
include/sys/h/resource.h

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.