rtems_status_code rtems_clock_get_tod( struct timeval *time );
RTEMS_SUCCESSFUL
- current time obtained successfully
RTEMS_NOT_DEFINED
- system date and time is not set
RTEMS_INVALID_ADDRESS
- time
is NULL
This directive obtains the system date and time in POSIX
struct timeval
format. If the date and time
has not been set with a previous call to
rtems_clock_set
, then the
RTEMS_NOT_DEFINED
status code is returned.
This directive is callable from an ISR.
This directive will not cause the running task to be
preempted. Re-initializing RTEMS causes the system date and
time to be reset to an uninitialized state. Another call to
rtems_clock_set
is required to re-initialize the
system date and time to application specific specifications.
Copyright © 1988-2008 OAR Corporation