Clock Functions
The following functions are available to access eRTOS clock services:
- RtGetClockTime delivers the current value of the specified clock.
- RtSetClockTime sets the value of the specified clock.
- RtGetClockResolution retrieves the resolution of the specified clock.
- RtGetClockTimerPeriod retrieves the minimum timer period for the specified clock.
The clock values are delivered and set in 100ns units (ticks) and are reported as the number of ticks since 12:00 AM January 1, 1601.
Note: When eRTOS is configured to use more than one processor on a multiprocessor computer, it should not matter on which processor RtGetClockTime is called. However, you may get different results on different processors due to deviations that exist among local APIC timers. For this reason, if you want to trace the execution sequence of two events on different processors, Use QueryPerformanceCounter, instead of RtGetClockTime.