RTEMS Logo

RTEMS 4.10.2 On-Line Library


Clock Manager clock_getres - Get Clock Resolution

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

14.4.3: clock_getres - Get Clock Resolution

CALLING SEQUENCE:

#include <time.h>

int clock_getres(
  clockid_t        clock_id,
  struct timespec *res
);

STATUS CODES:

On error, this routine returns -1 and sets errno to one of the following:

EINVAL
The res pointer parameter is invalid.
EINVAL
The clock_id specified is invalid.

DESCRIPTION:

NOTES:

If res is NULL, then the resolution is not returned.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation