Home |
RTKernel-32 Programming Manual Time Conversions |
Time ConversionsModule Timer provides the following functions for conversions between floating point seconds and RTKernel-32 timer ticks: TISeconds TIFineTimeToSeconds(const RTKFineTime * T); TISeconds TITicksToSeconds (RTKDuration T); RTKDuration TISecondsToTicks (TISeconds T); The results are rounded to the nearest representable value. The result of TISecondsToTicks is undefined if it would exceed 32 bits. These time conversion routines only work correctly if TimerInit has been called and all changes to the timer interrupt interval have been performed using function TISetTimerInterval.
|