Question:
CkDateTime DateTime;
FILETIME ftDateTime;
LARGE_INTEGER liDateTime,liSystemTime;
DateTime.SetFromCurrentSystemTime();
DateTime.GetAsFileTime(false,ftDateTime);
liDateTime.HighPart = ftDateTime.dwHighDateTime;
liDateTime.LowPart = ftDateTime.dwLowDateTime;
GetSystemTimeAsFileTime((LPFILETIME)&liSystemTime);
sample values obtained :
liSystemTime {131119968964705422} _LARGE_INTEGER
liDateTime {131119968960000000} _LARGE_INTEGER
Lost in precision ie. missing 470xxxx...
(GetAsDateTimeTicks, I believe 100nanosecs ticks are also missing)
Is this correct ?
Fya.
Yes, this is correct. The CkDateTime class is meant to be a cross-platform, cross-language class for date/time representations. It is meant to provide a means for accessing date/time information and converting to/from many different formats.
It is not intended to be a tool for precision timing.