Jacek Caban jacek@codeweavers.com writes:
+static DWORD64 collector_timeout;
+static DWORD64 current_time(void) +{
- ULARGE_INTEGER timeout;
- SYSTEMTIME st;
- FILETIME ft;
- GetSystemTime(&st);
- SystemTimeToFileTime(&st, &ft);
- timeout.u.LowPart = ft.dwLowDateTime;
- timeout.u.HighPart = ft.dwHighDateTime;
- return timeout.QuadPart;
+}
That's a lot of complexity for a timestamp, GetTickCount() would work just as well, as long as you do the comparisons correctly.