Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add setset to cmake build chain
[simgrid.git] / src / xbt / xbt_os_time.c
index 3b0a26b..0345e0f 100644 (file)
@@ -1,8 +1,7 @@
-/* $Id$ */
-
 /* xbt_os_time.c -- portable interface to time-related functions            */
 
-/* Copyright (c) 2004-2008 The SimGrid team. All rights reserved.           */
+/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -127,7 +126,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) -