X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8bd1d4d43b1cbdeec15247821932f6ca0971fd96..1873a02acdc52506c010f43b4c78a8b8400dc0de:/src/xbt/xbt_os_time.c diff --git a/src/xbt/xbt_os_time.c b/src/xbt/xbt_os_time.c index fa6fc2b437..0e8951f837 100644 --- a/src/xbt/xbt_os_time.c +++ b/src/xbt/xbt_os_time.c @@ -92,15 +92,22 @@ void xbt_os_sleep(double sec) */ struct s_xbt_os_timer { #if HAVE_POSIX_GETTIME - struct timespec start, stop, elapse; + struct timespec start; + struct timespec stop; + struct timespec elapse; #elif HAVE_GETTIMEOFDAY || defined(_WIN32) - struct timeval start, stop, elapse; + struct timeval start; + struct timeval stop; + struct timeval elapse; #else - unsigned long int start, stop, elapse; + unsigned long int start; + unsigned long int stop; + unsigned long int elapse; #endif }; -size_t xbt_os_timer_size(void){ +size_t xbt_os_timer_size(void) +{ return sizeof(struct s_xbt_os_timer); }