Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill old $Id$ command dating from CVS
[simgrid.git] / src / xbt / xbt_os_time.c
index 3b0a26b..2846315 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* xbt_os_time.c -- portable interface to time-related functions            */
 
 /* Copyright (c) 2004-2008 The SimGrid team. All rights reserved.           */
@@ -127,7 +125,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) -