Services and Modeling for Embedded Software Development
Embecosm divider strip
Prev  Next

5.3.17.  Provide Process Timing Information, times

For a namespace clean function, implement _times, otherwise implement times. The implementation of this functionality will be tightly bound to any operating infrastructure for handling multiple processes.

A minimal implementation need not offer any timing information, so should always fail with an appropriate value in errno.

#include <errno.h>
#include <sys/times.h>

#undef errno
extern int  errno;

_times (struct tms *buf)
  errno = EACCES;
  return  -1;

}       /* _times () */
Embecosm divider strip