RTEMS Logo

RTEMS 4.9.2 On-Line Library


Clock Manager CLOCK_GET_UPTIME - Get the time since boot

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

7.4.8: CLOCK_GET_UPTIME - Get the time since boot

CALLING SEQUENCE:

procedure Clock_Get_Uptime (
   Uptime :    out RTEMS.Timespec;
   Result :    out RTEMS.Status_Codes
);

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 Ada User's Guide

Copyright © 1988-2008 OAR Corporation