mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +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;
|
struct timeval tv;
|
||||||
gettimeofday(&tv,NULL);
|
gettimeofday(&tv,NULL);
|
||||||
time_ticks = (1000000 * tv.tv_sec + tv.tv_usec);
|
time_ticks = (1000000 * tv.tv_sec + tv.tv_usec);
|
||||||
|
#elif defined(HAVE_LIBNX)
|
||||||
|
time_ticks = armGetSystemTick();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return time_ticks;
|
return time_ticks;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user