Clock Types
The RTX64 clocks, available in the Win32 and RTSS environments, are:
- CLOCK_1 (alias CLOCK_SYSTEM) — CLOCK_1 services have a resolution of 1 ms. Threads in both the Win32 and RTSS environments may schedule timers with periods in increments of 1 ms on this clock.
- CLOCK_2 (alias CLOCK_FASTEST) — CLOCK_2 services have a resolution of 1 µs. The period for timers scheduled on this clock is variable and can be set to any value between 1 and 1000 µs.
- CLOCK_3 — CLOCK_3 services have a resolution of 1 µs. The period for timers scheduled on this clock is calculated through the number of Programmable Timer ticks passed in the period and one-tick interval.
NOTE: Both CLOCK_3 and CLOCK_2 are based on the same HAL extension timer period. The difference is in the interpretation and representation of this period in the CLOCK calculation.
Related topics: