如何将 FILETIME 转换为秒?我需要比较两个 FILETIME 对象..
我找到了这个,但似乎它不起作用......
ULARGE_INTEGER ull;
ull.LowPart = lastWriteTimeLow1;
ull.HighPart = lastWriteTimeHigh1;
time_t lastModified = ull.QuadPart / 10000000ULL - 11644473600ULL;
ULARGE_INTEGER xxx;
xxx.LowPart = currentTimeLow1;
xxx.HighPart = currentTimeHigh1;
time_t current = xxx.QuadPart / 10000000ULL - 11644473600ULL;
unsigned long SecondsInterval = current - lastModified;
if (SecondsInterval > RequiredSecondsFromNow)
return true;
return false;
我比较了 2 FILETIME 和 10 秒的预期差异,它给了我 ~7000 ......这是提取秒数的好方法吗?