From 6a6b04b52ae82e68af569e9a226609be3a3cd324 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 10 Dec 2004 15:33:56 +0000 Subject: [PATCH 1/1] Fix the semantic (gras_os_time returns seconds, not microseconds) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@618 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- testsuite/surf/maxmin_bench.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testsuite/surf/maxmin_bench.c b/testsuite/surf/maxmin_bench.c index 97da9ef926..a2b531e630 100644 --- a/testsuite/surf/maxmin_bench.c +++ b/testsuite/surf/maxmin_bench.c @@ -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; } -- 2.20.1