Xenomai  3.0.5
Collaboration diagram for Clock Services:

Functions

nanosecs_abs_t rtdm_clock_read (void)
 Get system time. More...
 
nanosecs_abs_t rtdm_clock_read_monotonic (void)
 Get monotonic time. More...
 

Detailed Description

Function Documentation

◆ rtdm_clock_read()

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.
Tags
unrestricted

Referenced by a4l_get_time(), and rtdm_ratelimit().

◆ rtdm_clock_read_monotonic()

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.
Tags
unrestricted