Revert to gettimeofday on posix systems. I give up.

Temporary fix for OSX in JitIL.cpp
This revision should build on OSX again.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6457 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-11-22 02:42:53 +00:00
parent 63c35bf14a
commit a3c46990f6
4 changed files with 11 additions and 32 deletions

View File

@ -493,15 +493,9 @@ namespace Common
if (timeout != INFINITE)
{
memset(&wait, 0, sizeof(wait));
#ifdef USE_GETTIMEOFDAY
struct timeval now;
gettimeofday(&now, NULL);
wait.tv_nsec = (now.tv_usec + (timeout % 1000)) * 1000;
#else
struct timespec now;
clock_gettime(CLOCK_MONOTONIC_RAW, &now);
wait.tv_nsec = now.tv_nsec + (timeout % 1000) * 1000000;
#endif
wait.tv_sec = now.tv_sec + (timeout / 1000);
}