This task would run exactly once every 5 timer ticks, provided the task's job takes no longer than 5 timer ticks. The actual cycle time can be adjusted using constant Cycle and the timer interrupt interval.

If the cycle time of a task is not an exact multiple of the timer interrupt interval, the following task can be used:

Since RTKernel-32 can only activate tasks waiting in an RTKDelay or RTKDelayUntil through a timer interrupt, these tasks would, on the average, conform to their cycle exactly. The start of a cycle can deviate from the desired point in time up to one timer tick. This round-off error arises from the conversion of a float point number to an integer in function TISecondsToTicks of module Timer. However, the error does not accumulate; it is the same in each cycle. It must be noted that rounding errors can occur when floats are used to store large numbers representing RTKernel-32 times. Unlike the first example, an overflow of RTKernel-32's clock must also be considered (see section Module RTKernel-32, Time).