RTEMS Logo

RTEMS 4.6.5 On-Line Library


Clock Manager Obtaining the Time

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

7.3.3: Obtaining the Time

The rtems.clock_get directive allows a task or an ISR to obtain the current date and time or date and time related information. The current date and time can be returned in either native or UNIX-style format. Additionally, the application can obtain date and time related information such as the number of seconds since the RTEMS epoch, the number of ticks since the executive was initialized, and the number of ticks per second. The information returned by the rtems.clock_get directive is dependent on the option selected by the caller. This is specified using one of the following constants associated with the enumerated type rtems.clock_get_options:

Calendar time operations will return an error code if invoked before the date and time have been set.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2004 OAR Corporation