X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fd1d8acdec3f70b71f6153c2205df3f16a57627d..719a77db362a51309e90a75253788223936b276c:/src/xbt/xbt_os_time.c diff --git a/src/xbt/xbt_os_time.c b/src/xbt/xbt_os_time.c index 6f5f81e533..2f45c1c14f 100644 --- a/src/xbt/xbt_os_time.c +++ b/src/xbt/xbt_os_time.c @@ -1,6 +1,6 @@ /* xbt_os_time.c -- portable interface to time-related functions */ -/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2007-2010, 2012-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -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;