12# define WIN32_LEAN_AND_MEAN
17 static int hasperfcounter = -1;
18 static double perffreq;
20 if (hasperfcounter == -1) {
22 hasperfcounter = QueryPerformanceFrequency((LARGE_INTEGER *)&ifreq);
29 QueryPerformanceCounter((LARGE_INTEGER *)&
count);
31 return count / perffreq;
34 static double accum = 0.0;
36 int ntick = GetTickCount();
39 accum += (0xFFFFFFFF - ltick + ntick) / 1000.0;
42 accum += (ntick - ltick) / 1000.0;
70 gettimeofday(&tv, &tz);
72 return ((
double)tv.tv_sec + tv.tv_usec / 1000000.0);
80 gettimeofday(&tv, &tz);
Platform independent time functions.
typedef double(DMatrix)[4][4]
void BLI_time_sleep_ms(int ms)
double BLI_time_now_seconds(void)
long int BLI_time_now_seconds_i(void)