11 # define WIN32_LEAN_AND_MEAN
16 static int hasperfcounter = -1;
17 static double perffreq;
19 if (hasperfcounter == -1) {
21 hasperfcounter = QueryPerformanceFrequency((LARGE_INTEGER *)&ifreq);
28 QueryPerformanceCounter((LARGE_INTEGER *)&
count);
30 return count / perffreq;
33 static double accum = 0.0;
35 int ntick = GetTickCount();
38 accum += (0xFFFFFFFF - ltick + ntick) / 1000.0;
41 accum += (ntick - ltick) / 1000.0;
61 # include <sys/time.h>
69 gettimeofday(&tv, &tz);
71 return ((
double)tv.tv_sec + tv.tv_usec / 1000000.0);
79 gettimeofday(&tv, &tz);
typedef double(DMatrix)[4][4]
Platform independent time functions.
void PIL_sleep_ms(int ms)
double PIL_check_seconds_timer(void)
long int PIL_check_seconds_timer_i(void)