X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/04cb78f32377e433ce4d2d152e03a68c32c42fd0..9a17ee50f5ac1e197040595cbf31dedb6dda5ab6:/src/xbt/xbt_os_time.c diff --git a/src/xbt/xbt_os_time.c b/src/xbt/xbt_os_time.c index 3b0a26b2b7..a7f17f5b2e 100644 --- a/src/xbt/xbt_os_time.c +++ b/src/xbt/xbt_os_time.c @@ -127,7 +127,7 @@ double xbt_os_timer_elapsed(xbt_os_timer_t timer) #ifdef HAVE_POSIX_GETTIME return ((double) timer->stop.tv_sec) - ((double) timer->start.tv_sec) + ((((double) timer->stop.tv_nsec) - - ((double) timer->start.tv_nsec)) / 1e-9); + ((double) timer->start.tv_nsec)) / 1e9); #elif defined(HAVE_GETTIMEOFDAY) return ((double) timer->stop.tv_sec) - ((double) timer->start.tv_sec) + ((((double) timer->stop.tv_usec) -