Merge pull request #7983 from natinusala/master

libnx: implement perf counters
This commit is contained in:
Twinaphex 2019-01-11 18:23:28 +01:00 committed by GitHub
commit 58d764ce5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;