1 /* Time support routines for PowerPC.
3 * Written by Aldy Hernandez.
10 #include <sys/resource.h>
13 times (struct tms
*tp
)
18 /* Newlib's rusage has only 2 fields. We need to make room for
19 when we call the system's rusage. This should be enough. */
23 getrusage (RUSAGE_SELF
, (void *)&host_ru
);
27 tp
->tms_utime
= host_ru
.r
.ru_utime
.tv_sec
* 1000
28 + host_ru
.r
.ru_utime
.tv_usec
;
29 tp
->tms_stime
= host_ru
.r
.ru_stime
.tv_sec
* 1000
30 + host_ru
.r
.ru_stime
.tv_usec
;
31 tp
->tms_cutime
= 0; /* user time, children */
32 tp
->tms_cstime
= 0; /* system time, children */