forked from Imagelibrary/rtems
Enhanced times() with copy from the other chapter.
This commit is contained in:
@@ -31,7 +31,7 @@ The directives provided by the process environment manager are:
|
|||||||
@item @code{setsid} -
|
@item @code{setsid} -
|
||||||
@item @code{setpgid} -
|
@item @code{setpgid} -
|
||||||
@item @code{uname} -
|
@item @code{uname} -
|
||||||
@item @code{times} -
|
@item @code{times} - Get process times
|
||||||
@item @code{getenv} -
|
@item @code{getenv} -
|
||||||
@item @code{ctermid} -
|
@item @code{ctermid} -
|
||||||
@item @code{ttyname} -
|
@item @code{ttyname} -
|
||||||
@@ -461,32 +461,35 @@ The
|
|||||||
@subheading NOTES:
|
@subheading NOTES:
|
||||||
|
|
||||||
@page
|
@page
|
||||||
@subsection times -
|
@subsection times - Get process times
|
||||||
|
|
||||||
@subheading CALLING SEQUENCE:
|
@subheading CALLING SEQUENCE:
|
||||||
|
|
||||||
@ifset is-C
|
|
||||||
@example
|
@example
|
||||||
int times(
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
clock_t times(
|
||||||
|
struct tms *buf
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
|
||||||
|
|
||||||
@ifset is-Ada
|
|
||||||
@end ifset
|
|
||||||
|
|
||||||
@subheading STATUS CODES:
|
@subheading STATUS CODES:
|
||||||
|
|
||||||
@table @b
|
This routine returns the process times
|
||||||
@item E
|
|
||||||
The
|
|
||||||
|
|
||||||
@end table
|
|
||||||
|
|
||||||
@subheading DESCRIPTION:
|
@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:
|
@subheading NOTES:
|
||||||
|
|
||||||
|
NONE
|
||||||
|
|
||||||
@page
|
@page
|
||||||
@subsection getenv -
|
@subsection getenv -
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user