Update time.c

This commit is contained in:
Max Qian 2024-09-24 16:04:22 +08:00 committed by GitHub
parent 6dcc7ba8aa
commit 956404177b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@
static bool get_ns(int64_t* out) { static bool get_ns(int64_t* out) {
struct timespec tms; struct timespec tms;
#ifdef __ANDROID__ #if defined( __ANDROID__) || defined(__MINGW32__) || defined(__MINGW64__)
clock_gettime(CLOCK_REALTIME, &tms); clock_gettime(CLOCK_REALTIME, &tms);
#else #else
/* The C11 way */ /* The C11 way */