Xenomai API  2.5.6.1
Clock Services
Collaboration diagram for Clock Services:

Functions

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

Function Documentation

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:

  • Kernel module initialization/cleanup code
  • Interrupt service routine
  • Kernel-based task
  • User-space task (RT, non-RT)

Rescheduling: never.

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:

  • Kernel module initialization/cleanup code
  • Interrupt service routine
  • Kernel-based task
  • User-space task (RT, non-RT)

Rescheduling: never.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines