libnx: implement perf counters

This commit is contained in:
natinusala 2019-01-11 17:43:47 +01:00
parent 78cc8794f7
commit 52479ad09f

View File

@ -198,6 +198,8 @@ retro_perf_tick_t cpu_features_get_perf_counter(void)
struct timeval tv;
gettimeofday(&tv,NULL);
time_ticks = (1000000 * tv.tv_sec + tv.tv_usec);
#elif defined(HAVE_LIBNX)
time_ticks = armGetSystemTick();
#endif
return time_ticks;