|
|
1.1 root 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: .\"
5: .\" @(#)time.1 6.2 (Berkeley) 11/17/87
6: .\"
7: .TH TIME 1 "November 17, 1987"
8: .UC 4
9: .SH NAME
10: time \- time a command
11: .SH SYNOPSIS
12: .B time
13: [-l] command
14: .SH DESCRIPTION
15: The given command is executed; after it is complete, \fItime\fP
16: prints the elapsed time during the command, the time spent in the
17: system, and the time spent in execution of the command. Times are
18: reported in seconds. If the \fB-l\fP option is supplied, the
19: contents of the \fIrusage\fP structure are printed as well.
20: .PP
21: On a PDP-11, the execution time can depend on what kind of memory
22: the program happens to land in; the user time in MOS is often half
23: what it is in core.
24: .PP
25: The times are printed on the diagnostic output stream, ``stderr''.
26: .PP
27: \fITime\fP is a built-in command to \fIcsh\fP(1), with a much different
28: syntax. This command is available as ``/bin/time'' to \fIcsh\fP users.
29: .SH BUGS
30: Elapsed time is accurate to the second, while the CPU times are measured
31: to the 100th second. Thus the sum of the CPU times can be up to a second
32: larger than the elapsed time.
33: .SH "SEE ALSO"
34: include/sys/h/resource.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.