RTEMS Logo

RTEMS 4.9.5 On-Line Library


Clock Manager CLOCK_GET_UPTIME - Get the time since boot

PREV UP NEXT Bookshelf RTEMS C User's Guide

7.4.8: CLOCK_GET_UPTIME - Get the time since boot

CALLING SEQUENCE:

rtems_status_code rtems_clock_get_uptime(
  struct timespec *uptime
);

DIRECTIVE STATUS CODES:

RTEMS_SUCCESSFUL - clock tick processed successfully
RTEMS_INVALID_ADDRESS - time_buffer is NULL

DESCRIPTION:

This directive returns the seconds and nanoseconds since the system was booted. If the BSP supports nanosecond clock accuracy, the time reported will probably be different on every call.

NOTES:

This directive may be called from an ISR.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation