diff --git a/src/sentry_utils.h b/src/sentry_utils.h index cbc72898b..41678d7d4 100644 --- a/src/sentry_utils.h +++ b/src/sentry_utils.h @@ -106,11 +106,9 @@ sentry__usec_time(void) // Contains a 64-bit value representing the number of 100-nanosecond // intervals since January 1, 1601 (UTC). FILETIME file_time; -# if _WIN32_WINNT >= 0x0602 - GetSystemTimePreciseAsFileTime(&file_time); -# else - GetSystemTimeAsFileTime(&file_time); -# endif + SYSTEMTIME system_time; + GetSystemTime(&system_time); + SystemTimeToFileTime(&system_time, &file_time); uint64_t timestamp = (uint64_t)file_time.dwLowDateTime + ((uint64_t)file_time.dwHighDateTime << 32);