Print warning if using GetTickCount()

This commit is contained in:
Freddie Akeroyd
2020-09-19 00:53:05 +01:00
parent dc579b78db
commit f8a6735691

View File

@@ -29,6 +29,9 @@ void osdMonotonicInit(void)
osdUsePrefCounter = 1;
} else {
osdMonotonicResolution = 1e6; /* 1 ms TODO place holder */
#if _WIN32_WINNT < 0x0600 /* Older than Windows Vista / Server 2008 */
errMessage(errlogMinor, "Warning: using GetTickCount() so monotonic time will wrap every 49.7 days\n");
#endif
}
}