Clock Services
[Driver Development API]

Collaboration diagram for Clock Services:


Functions

nanosecs_abs_t rtdm_clock_read (void)
nanosecs_abs_t rtdm_clock_read_monotonic (void)


Function Documentation

nanosecs_abs_t rtdm_clock_read ( void   ) 

Get system time

Returns:
The system time in nanoseconds is returned
Note:
The resolution of this service depends on the system timer. In particular, if the system timer is running in periodic mode, the return value will be limited to multiples of the timer tick period.

The system timer may have to be started to obtain valid results. Whether this happens automatically (as on Xenomai) or is controlled by the application depends on the RTDM host environment.

Environments:

This service can be called from:

Rescheduling: never.

nanosecs_abs_t rtdm_clock_read_monotonic ( void   ) 

Get monotonic time

Returns:
The monotonic time in nanoseconds is returned
Note:
The resolution of this service depends on the system timer. In particular, if the system timer is running in periodic mode, the return value will be limited to multiples of the timer tick period.

The system timer may have to be started to obtain valid results. Whether this happens automatically (as on Xenomai) or is controlled by the application depends on the RTDM host environment.

Environments:

This service can be called from:

Rescheduling: never.


Generated on Mon Mar 24 18:02:43 2008 for Xenomai API by  doxygen 1.5.3