mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +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)
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user