diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-22 18:48:57 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-12-22 18:48:57 +0000 |
commit | d26ff498a561775b6ff5b455c61f11e4cd8bd873 (patch) | |
tree | ff4e518d3293d20627c5c54ae78236d553c9f434 /bin/ksh/ksh.1tbl | |
parent | 789ed5943cc6349ea0276feedb68a6131a42455d (diff) |
Our times(3) just calls getrusage(2) and gettimeofday(2), converting seconds
to ticks. Since ksh needs things in seconds it then converted them back.
Avoid the silliness and use the getrusage(2) and gettimeofday(2) directly.
With man page help from jmc@
Diffstat (limited to 'bin/ksh/ksh.1tbl')
-rw-r--r-- | bin/ksh/ksh.1tbl | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/bin/ksh/ksh.1tbl b/bin/ksh/ksh.1tbl index eb6c0548444..db6d1a57454 100644 --- a/bin/ksh/ksh.1tbl +++ b/bin/ksh/ksh.1tbl @@ -1,4 +1,4 @@ -.\" $OpenBSD: ksh.1tbl,v 1.82 2004/12/16 02:10:59 jaredy Exp $ +.\" $OpenBSD: ksh.1tbl,v 1.83 2004/12/22 18:48:56 millert Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -3980,21 +3980,24 @@ the user CPU time (time spent running in user mode), and the system CPU time (time spent running in kernel mode). Times are reported to standard error; the format of the output is: .Pp -.Dl 0.00s real 0.00s user 0.00s system +.Dl "0m0.00s real 0m0.00s user 0m0.00s system" .Pp -unless the +If the .Fl p -option is given (only possible if -.Ar pipeline -is a simple command), in which case the output is slightly longer: +option is given the output is slightly longer: +.Bd -literal -offset indent +real 0.00 +user 0.00 +sys 0.00 +.Ed .Pp -.Dl real 0.00 -.Dl user 0.00 -.Dl sys 0.00 +It is an error to specify the +.Fl p +option unless +.Ar pipeline +is a simple command. .Pp -(the number of digits after the decimal may vary from system to system). -Note -that simple redirections of standard error do not effect the output of the +Simple redirections of standard error do not effect the output of the .Ic time command: .Pp @@ -4005,8 +4008,13 @@ Times for the first command do not go to .Dq afile , but those of the second command do. .It Ic times -Print the accumulated user and system times used by the shell and by processes -which have exited that the shell started. +Print the accumulated user and system times used both by the shell +and by processes that the shell started which have exited. +The format of the output is: +.Bd -literal -offset indent +0m0.00s 0m0.00s +0m0.00s 0m0.00s +.Ed .It Ic trap Op Ar handler signal ... Sets a trap handler that is to be executed when any of the specified signals are received. |