mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
(XDK) Use QueryPerformanceCounter on _XBOX as well
This commit is contained in:
parent
166705a54a
commit
2588f4877a
@ -114,7 +114,7 @@ rarch_perf_tick_t rarch_get_perf_counter(void)
|
||||
|
||||
rarch_time_t rarch_get_time_usec(void)
|
||||
{
|
||||
#if defined(_WIN32) && !defined(_XBOX)
|
||||
#if defined(_WIN32)
|
||||
static LARGE_INTEGER freq;
|
||||
if (!freq.QuadPart && !QueryPerformanceFrequency(&freq)) // Frequency is guaranteed to not change.
|
||||
return 0;
|
||||
@ -123,10 +123,6 @@ rarch_time_t rarch_get_time_usec(void)
|
||||
if (!QueryPerformanceCounter(&count))
|
||||
return 0;
|
||||
return count.QuadPart * 1000000 / freq.QuadPart;
|
||||
#elif defined(_XBOX360)
|
||||
return GetTickCount() * INT64_C(1000); // FIXME: Need more accurate measurement.
|
||||
#elif defined(_XBOX)
|
||||
return timeGetTime() * INT64_C(1000); // FIXME: Need more accurate measurement, i.e. QueryPerformanceCounter.
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
return sys_time_get_system_time();
|
||||
#elif defined(GEKKO)
|
||||
|
Loading…
Reference in New Issue
Block a user