X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8be7ea3f9e71cd563e91b6aba63f5c70f043fbd5..3735eb9d0e10ba6574aa0a59935d7dfe09b1658e:/src/xbt/xbt_os_time.c diff --git a/src/xbt/xbt_os_time.c b/src/xbt/xbt_os_time.c index 4071c01397..6b06a6ba36 100644 --- a/src/xbt/xbt_os_time.c +++ b/src/xbt/xbt_os_time.c @@ -19,7 +19,7 @@ //Freebsd doesn't provide this clock_gettime flag yet, because it was added too recently (after 1993) #ifdef __FreeBSD__ -#define CLOCK_PROCESS_CPUTTIME_ID CLOCK_PROF +#define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROF #endif double xbt_os_time(void) @@ -92,7 +92,7 @@ void xbt_os_sleep(double sec) struct s_xbt_os_timer { #ifdef HAVE_POSIX_GETTIME struct timespec start, stop, elapse; -#elif defined(HAVE_GETTIMEOFDAY) +#elif defined(HAVE_GETTIMEOFDAY) || defined(_XBT_WIN32) struct timeval start, stop, elapse; #else unsigned long int start, stop, elapse;