change %D to %ld; make lint happy
[unix-history] / usr / src / usr.bin / time / time.1
CommitLineData
c5780706
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
e5e18cb6 5.\" @(#)time.1 6.1 (Berkeley) %G%
c5780706 6.\"
e5e18cb6 7.TH TIME 1 ""
c5780706
KM
8.UC 4
9.SH NAME
10time \- time a command
11.SH SYNOPSIS
12.B time
13command
14.SH DESCRIPTION
15The
16given command is executed; after it is complete,
17.I time
18prints the elapsed time during the command, the time
19spent in the system, and the time spent in execution
20of the command.
21Times are reported in seconds.
22.PP
23On a PDP-11, the execution time can depend on what kind of memory
24the program happens to land in;
25the user time in MOS is often half what it is in core.
26.PP
27The times are printed on the diagnostic output stream.
28.PP
29.I Time
30is built in to
056c4bca 31.IR csh (1),
c5780706
KM
32using a different output format.
33.SH BUGS
34Elapsed time is accurate to the second,
35while the CPU times are measured
056c4bca 36to the 100th second.
c5780706
KM
37Thus the sum of the CPU times can be up to a second larger
38than the elapsed time.
39.PP
40.I Time
41is a built-in command to
42.IR csh (1),
43with a much different syntax. This command is available as
44``/bin/time'' to
45.I csh
46users.