comparison TOOLS/cpuinfo.c @ 9764:f5c4c9bb9451

MINGW32 port
author faust3
date Sun, 30 Mar 2003 20:48:51 +0000
parents d7a83bb5fec9
children d1a941c25b4d
comparison
equal deleted inserted replaced
9763:7e5d9bf1e56f 9764:f5c4c9bb9451
1 1
2 #include <stdio.h> 2 #include <stdio.h>
3 #include <sys/time.h> 3 #include <sys/time.h>
4
5 #ifdef __MINGW32__
6 #include <sys/timeb.h>
7 void gettimeofday(struct timeval* t,void* timezone)
8 { struct timeb timebuffer;
9 ftime( &timebuffer );
10 t->tv_sec=timebuffer.time;
11 t->tv_usec=1000*timebuffer.millitm;
12 }
13 #define MISSING_USLEEP
14 #define sleep(t) _sleep(1000*t);
15 #endif
4 16
5 #ifdef M_UNIX 17 #ifdef M_UNIX
6 typedef long long int64_t; 18 typedef long long int64_t;
7 #define MISSING_USLEEP 19 #define MISSING_USLEEP
8 #else 20 #else