minix/man/man1/time.1

33 lines
568 B
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.TH TIME 1
.SH NAME
time \- report how long a command takes
.SH SYNOPSIS
\fBtime [-C] \fIcommand\fR
2005-05-02 15:01:42 +02:00
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
The -C option tells time to report the cpu cycle counter
difference.
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.TP 20
.B time a.out
# Report how long \fIa.out\fR takes
.TP 20
.B time ls \-l *.c
# Report how long \fIls\fR takes
2005-05-02 15:01:42 +02:00
.SH DESCRIPTION
.PP
The command is executed and the real time, user time, and system time (in
hours, minutes, and seconds) are printed.
Shell scripts cannot be timed.
.SH "SEE ALSO"
.BR times (2).