Forgot this file for Pyra version

This commit is contained in:
ptitSeb 2021-08-02 09:00:39 +02:00
parent f777ad622b
commit 52313115bb

View File

@ -46,7 +46,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
static inline __int64 ReadTSC(void) static inline __int64 ReadTSC(void)
{ {
#if USE_GETTIMEOFDAY #if USE_GETTIMEOFDAY
#ifdef PLATFORM_PANDORA #if defined(PLATFORM_PANDORA) || defined(PLATFORM_PYRA)
struct timespec tp; struct timespec tp;
clock_gettime(CLOCK_MONOTONIC, &tp); clock_gettime(CLOCK_MONOTONIC, &tp);
return( (((__int64) tp.tv_sec) * 1000000000LL) + ((__int64) tp.tv_nsec)); return( (((__int64) tp.tv_sec) * 1000000000LL) + ((__int64) tp.tv_nsec));
@ -324,7 +324,7 @@ CTimer::CTimer(BOOL bInterrupt /*=TRUE*/)
#if USE_GETTIMEOFDAY #if USE_GETTIMEOFDAY
// just use gettimeofday. // just use gettimeofday.
#ifdef PLATFORM_PANDORA #if defined(PLATFORM_PANDORA) || defined(PLATFORM_PYRA)
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000000LL; tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000000LL;
#else #else
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000; tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000;