#include <sys/time.h> clock_t times( struct tms *ptms );
This routine returns the number of clock ticks that have elapsed since the system was initialized (e.g. the application was started).
times stores the current process times in ptms. The
format of struct tms is as defined in
<sys/times.h>. RTEMS fills in the field tms_utime
with the number of ticks that the calling thread has executed
and the field tms_stime with the number of clock ticks
since system boot (also returned). All other fields in the
ptms are left zero.
RTEMS has no way to distinguish between user and system time so this routine returns the most meaningful information possible.
Copyright © 1988-2004 OAR Corporation