mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Fix ogl screenshots for windows.
Fix the macosx build (perhaps). This changes the JitIL timed profiling to using assembly language to obtain the time. It does seem to be faster. Not sure if it will work on macosx, but if it does it has the necessary precision that gettimeofday does not have. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6448 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -60,8 +60,13 @@
|
||||
#define INFINITE 0xffffffff
|
||||
#endif
|
||||
|
||||
//for clock_gettime and struct timespec
|
||||
//for (clock_gettime|gettimeofday) and struct time(spec|val)
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#if !defined(_POSIX_TIMERS) || _POSIX_TIMERS == 0
|
||||
#define USE_GETTIMEOFDAY
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user