RtcTimeDiff
Property, in which the current time difference (in seconds) between the Windows NT system time and the real-time clock of the PC is displayed.
HRESULT RtcTimeDiff(
[out,retval] LONG* pVal,
);
Parameters
pVal | [out, retval] |
Return Values
HRESULT == S_OK | Reading successful. |
HRESULT != S_OK | Error during reading of the time difference. |
Comments
Calling of RtcTimeDiff causes the current real-time clock values (RTC or CMOS CLOCK) to be read and compared with the Windows NT system time. The difference is the NT system time minus the RTC time. Because the maximum daily deviation of the system time from the RTC time is 1 second, frequent calls of this function are not required.