(XDK) Use QueryPerformanceCounter on _XBOX as well

This commit is contained in:
twinaphex 2013-02-05 21:49:21 +01:00
parent 166705a54a
commit 2588f4877a

View File

@ -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)