Home |
RTKernel-32 Programming Manual Fine Time Arithmetic Functions Time Conversions |
Time ConversionsThe following functions can convert 64-bit high resolution times to seconds, milliseconds, microseconds, nanoseconds, and vice versa: RTKFTIMEINT FTTimeToSeconds (const RTKFineTime * T); RTKFTIMEINT FTTimeToMilliSecs(const RTKFineTime * T); RTKFTIMEINT FTTimeToMicroSecs(const RTKFineTime * T); RTKFTIMEINT FTTimeToNanoSecs (const RTKFineTime * T); void FTSecondsToTime (RTKFineTime * T, DWORD Secs); void FTMilliSecsToTime(RTKFineTime * T, DWORD Millis); void FTMicroSecsToTime(RTKFineTime * T, DWORD Micros); void FTNanoSecsToTime (RTKFineTime * T, DWORD Nanos); All return values are rounded down. Again, the return values of the first four functions limit the available range. RTKFTIMEINT can be a 32-bit or 64-bit integer type. Please see section Module FineTime in the RTKernel-32 Programming Manual for details.
|