RTEMS Logo

RTEMS 4.10.0 On-Line Library


Process Environment Manager times - Get process times

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

3.4.16: times - Get process times

CALLING SEQUENCE:

#include <sys/time.h>

clock_t times(
  struct tms *ptms
);

STATUS CODES:

This routine returns the number of clock ticks that have elapsed since the system was initialized (e.g. the application was started).

DESCRIPTION:

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.

NOTES:

RTEMS has no way to distinguish between user and system time so this routine returns the most meaningful information possible.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation