mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 07:14:50 +01:00
Forgot this file for Pyra version
This commit is contained in:
parent
f777ad622b
commit
52313115bb
|
@ -46,7 +46,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
static inline __int64 ReadTSC(void)
|
||||
{
|
||||
#if USE_GETTIMEOFDAY
|
||||
#ifdef PLATFORM_PANDORA
|
||||
#if defined(PLATFORM_PANDORA) || defined(PLATFORM_PYRA)
|
||||
struct timespec tp;
|
||||
clock_gettime(CLOCK_MONOTONIC, &tp);
|
||||
return( (((__int64) tp.tv_sec) * 1000000000LL) + ((__int64) tp.tv_nsec));
|
||||
|
@ -324,7 +324,7 @@ CTimer::CTimer(BOOL bInterrupt /*=TRUE*/)
|
|||
|
||||
#if USE_GETTIMEOFDAY
|
||||
// just use gettimeofday.
|
||||
#ifdef PLATFORM_PANDORA
|
||||
#if defined(PLATFORM_PANDORA) || defined(PLATFORM_PYRA)
|
||||
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000000LL;
|
||||
#else
|
||||
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000;
|
||||
|
|
Loading…
Reference in New Issue
Block a user