mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #7983 from natinusala/master
libnx: implement perf counters
This commit is contained in:
commit
58d764ce5d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user