BSD 4_2 development
[unix-history] / usr / man / man1 / time.1
CommitLineData
6601abfb
C
1.TH TIME 1 "18 January 1983"
2.UC 4
3.SH NAME
4time \- time a command
5.SH SYNOPSIS
6.B time
7command
8.SH DESCRIPTION
9The
10given command is executed; after it is complete,
11.I time
12prints the elapsed time during the command, the time
13spent in the system, and the time spent in execution
14of the command.
15Times are reported in seconds.
16.PP
17On a PDP-11, the execution time can depend on what kind of memory
18the program happens to land in;
19the user time in MOS is often half what it is in core.
20.PP
21The times are printed on the diagnostic output stream.
22.PP
23.I Time
24is built in to
25.IR csh (1),
26using a different output format.
27.SH BUGS
28Elapsed time is accurate to the second,
29while the CPU times are measured
30to the 100th second.
31Thus the sum of the CPU times can be up to a second larger
32than the elapsed time.
33.PP
34.I Time
35is a built-in command to
36.IR csh (1),
37with a much different syntax. This command is available as
38``/bin/time'' to
39.I csh
40users.