Skip to content

Commit 111a778

Browse files
committed
Update
1 parent 48848f6 commit 111a778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

features/features_cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ retro_perf_tick_t cpu_features_get_perf_counter(void)
171171
tv_sec = (long)((ularge.QuadPart - epoch) / 10000000L);
172172
tv_usec = (long)(system_time.wMilliseconds * 1000);
173173
time_ticks = (1000000 * tv_sec + tv_usec);
174-
#elif defined(__linux__) || defined(__QNX__) || defined(__MACH__)
174+
#elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(ANDROID) || defined(__MACH__)
175175
struct timespec tv = {0};
176176
if (ra_clock_gettime(CLOCK_MONOTONIC, &tv) == 0)
177177
time_ticks = (retro_perf_tick_t)tv.tv_sec * 1000000000 +

0 commit comments

Comments
 (0)