diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-10-19 21:52:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-10-19 21:52:56 +0000 |
commit | 77f08533e636bbe33e61f48023bcc25137e8338b (patch) | |
tree | 9ad903d3a4ee504d1822b852dc58a234a7eee887 /doc/new_chapters | |
parent | Removed times() since it is duplicated. (diff) | |
download | rtems-77f08533e636bbe33e61f48023bcc25137e8338b.tar.bz2 |
Enhanced times() with copy from the other chapter.
Diffstat (limited to 'doc/new_chapters')
-rw-r--r-- | doc/new_chapters/procenv.t | 29 |
1 files changed, 16 insertions, 13 deletions
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 <sys/time.h> + +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 - |