Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix the semantic (gras_os_time returns seconds, not microseconds)
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 10 Dec 2004 15:33:56 +0000 (15:33 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 10 Dec 2004 15:33:56 +0000 (15:33 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@618 48e7efb5-ca39-0410-a469-dd3cf9ba447f

testsuite/surf/maxmin_bench.c

index 97da9ef..a2b531e 100644 (file)
@@ -56,9 +56,9 @@ void test(int nb_cnst, int nb_var, int nb_elem)
     }
   }
 
-  date = gras_os_time();
+  date = gras_os_time() * 1000000;
   lmm_solve(Sys);
-  date = gras_os_time() - date;
+  date = gras_os_time() * 1000000 - date;
 
   lmm_system_free(Sys);
   free(cnst);
@@ -72,10 +72,10 @@ int main(int argc, char **argv)
   int nb_cnst = 2000;
   int nb_var = 2000;
   int nb_elem = 20;
-  date = gras_os_time();
+  date = gras_os_time() * 1000000;
   test(nb_cnst, nb_var, nb_elem);
   printf("One shot execution time for a total of %d constraints, "
-        "%d variables with %d active constraint each : %f secondes \n",
+        "%d variables with %d active constraint each : %f microsecondes \n",
         nb_cnst, nb_var, nb_elem, date);
   return 0;
 }