X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..68fddbaeb8d7a332bec9eb09ef0e7e548ac1850c:/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); }