From 77f08533e636bbe33e61f48023bcc25137e8338b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 19 Oct 1998 21:52:56 +0000 Subject: Enhanced times() with copy from the other chapter. --- doc/new_chapters/procenv.t | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'doc/new_chapters') diff --git a/doc/new_chapters/procenv.t b/doc/new_chapters/procenv.t index e934988168..9f51ba8cf4 100644 --- a/doc/new_chapters/procenv.t +++ b/doc/new_chapters/procenv.t @@ -31,7 +31,7 @@ The directives provided by the process environment manager are: @item @code{setsid} - @item @code{setpgid} - @item @code{uname} - -@item @code{times} - +@item @code{times} - Get process times @item @code{getenv} - @item @code{ctermid} - @item @code{ttyname} - @@ -461,32 +461,35 @@ The @subheading NOTES: @page -@subsection times - +@subsection times - Get process times @subheading CALLING SEQUENCE: -@ifset is-C @example -int times( +#include + +clock_t times( + struct tms *buf ); @end example -@end ifset - -@ifset is-Ada -@end ifset @subheading STATUS CODES: -@table @b -@item E -The - -@end table +This routine returns the process times @subheading DESCRIPTION: +@code{times} stores the current process times in @code{buf}. + +@code{struct tms} is as defined in @code{/usr/include/sys/times.h} + +@code{times} returns the number of clock ticks that have elapsed +since the systm has been up. + @subheading NOTES: +NONE + @page @subsection getenv - -- cgit v1.2.3