Home |
RTKernel-32 Programming Manual Time Conversions |
Time ConversionsModule Clock provides the following functions to convert timer ticks to seconds, milliseconds, microseconds, and vice versa: DWORD CLKTicksToSeconds (RTKDuration T); DWORD CLKTicksToMilliSecs(RTKDuration T); DWORD CLKTicksToMicroSecs(RTKDuration T); RTKDuration CLKSecondsToTicks (DWORD Secs); RTKDuration CLKMilliSecsToTicks(DWORD Millis); RTKDuration CLKMicroSecsToTicks(DWORD Micros); All parameters and function results are limited to 32 bits. The function results are undefined if they would exceed this limit. In addition, all functions converting to RTKDuration can trigger a divide-by-zero exception if the result would exceed 32 bits. All conversion functions round down.
|