GetSystemTimeAsFileTimePrecise
GetSystemTimeAsFileTimePrecise retrieves the current system date and time in the 64-bit FILETIME format. The system time is based on Coordinated Universal Time (UTC). This function is more precise than GetSystemTimeAsFileTime.
Syntax
VOID GetSystemTimeAsFileTimePrecise(
LPFILETIME lpSystemTimeAsFileTime
);
Parameters
lpSystemTimeAsFileTime
A pointer to a FILETIME structure to receive the current system date and time.
Return Value
None
Remarks
The received FILETIME value from GetSystemTimeAsFileTimePrecise has 100 non-second precision, whereas the received FILETIME value from GetSystemTimeAsFileTime has only milli-second precision. If you convert the FILETIME value from GetSystemTimeAsFileTimePrecise to SYSTEMTIME and then back to FILETIME again, the value converted back may not be equal to the original value due to precision loss during the conversion process.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
RtssApi.h | rtkrnl.lib |
See Also: