From 4cea396016e14350680bd396d1025b3208a1bc2e Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 8 Nov 2024 17:43:48 +0800 Subject: [PATCH] ... --- src/modules/time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/time.c b/src/modules/time.c index 9ec89fae..653e8020 100644 --- a/src/modules/time.c +++ b/src/modules/time.c @@ -6,11 +6,11 @@ int64_t time_ns() { struct timespec tms; -#if defined(__ANDROID__) || defined(__MINGW32__) || defined(__MINGW64__) || !defined(TIME_UTC) - clock_gettime(CLOCK_REALTIME, &tms); -#else +#ifdef _MSC_VER /* The C11 way */ timespec_get(&tms, TIME_UTC); +#else + clock_gettime(CLOCK_REALTIME, &tms); #endif /* seconds, multiplied with 1 billion */ int64_t nanos = tms.tv_sec * NANOS_PER_SEC;