27 # define WIN32_LEAN_AND_MEAN
32 static int hasperfcounter = -1;
33 static double perffreq;
35 if (hasperfcounter == -1) {
37 hasperfcounter = QueryPerformanceFrequency((LARGE_INTEGER *)&ifreq);
44 QueryPerformanceCounter((LARGE_INTEGER *)&
count);
46 return count / perffreq;
49 static double accum = 0.0;
51 int ntick = GetTickCount();
54 accum += (0xFFFFFFFF - ltick + ntick) / 1000.0;
57 accum += (ntick - ltick) / 1000.0;
77 # include <sys/time.h>
85 gettimeofday(&tv, &tz);
87 return ((
double)tv.tv_sec + tv.tv_usec / 1000000.0);
95 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)