RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


Clock Manager clock_gettime - Obtain Time of Day

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

14.4.1: clock_gettime - Obtain Time of Day

CALLING SEQUENCE:

#include <time.h>

int clock_gettime(
  clockid_t        clock_id,
  struct timespec *tp
);

STATUS CODES:

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

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

DESCRIPTION:

NOTES:

NONE


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation