From 22c95b31eaeff44623599440ef20c130af50223a Mon Sep 17 00:00:00 2001 From: misson20000 Date: Mon, 5 Mar 2018 20:23:49 -0800 Subject: [PATCH] NSW: cpu_features_get_time_usec: put SWITCH block before POSIX_MONOTONIC_CLOCK block --- libretro-common/features/features_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/features/features_cpu.c b/libretro-common/features/features_cpu.c index efccf93070..dc3872043f 100644 --- a/libretro-common/features/features_cpu.c +++ b/libretro-common/features/features_cpu.c @@ -219,6 +219,8 @@ retro_time_t cpu_features_get_time_usec(void) return sys_time_get_system_time(); #elif defined(GEKKO) return ticks_to_microsecs(gettime()); +#elif defined(SWITCH) + return (svcGetSystemTick() * 10) / 192; #elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(ANDROID) || defined(__MACH__) struct timespec tv = {0}; if (ra_clock_gettime(CLOCK_MONOTONIC, &tv) < 0) @@ -236,8 +238,6 @@ retro_time_t cpu_features_get_time_usec(void) return sceKernelGetProcessTimeWide(); #elif defined(WIIU) return ticks_to_us(OSGetSystemTime()); -#elif defined(SWITCH) - return (svcGetSystemTick() * 10) / 192; #else #error "Your platform does not have a timer function implemented in cpu_features_get_time_usec(). Cannot continue." #endif