Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add generated files to the CVS so that the use of autotools is not necessary to build...
[simgrid.git] / examples / gras / chrono / chrono.c
index 0c889c8..db0301b 100644 (file)
@@ -24,7 +24,7 @@ int multiplier (int argc,char *argv[])
   double start = 0.0;
   double now = 0.0;
 
-  gras_init(&argc, argv, NULL);
+  gras_init(&argc, argv);
 
   A = malloc(n*n*sizeof(double));
   B = malloc(n*n*sizeof(double));
@@ -32,7 +32,7 @@ int multiplier (int argc,char *argv[])
 
   start=now=gras_os_time();
 
-  INFO1("Begin matrix multiplication loop (time: %lg)", start);
+  INFO1("Begin matrix multiplication loop (time: %g)", start);
 
   for(l=0; l<4; l++) {
     now=gras_os_time();
@@ -51,14 +51,14 @@ int multiplier (int argc,char *argv[])
     
     GRAS_BENCH_ONCE_RUN_ONCE_END();
     now=gras_os_time()-now;
-    INFO2("Iteration %d : %lg ", l, now);
+    INFO2("Iteration %d : %g ", l, now);
   }
 
   now=gras_os_time()-start;
-  INFO2("End matrix multiplication loop (time: %lg; Duration: %lg)", gras_os_time(), now);
+  INFO2("End matrix multiplication loop (time: %g; Duration: %g)", gras_os_time(), now);
 
   start=now=gras_os_time();
-  INFO1("Begin malloc loop (time: %lg)", start);
+  INFO1("Begin malloc loop (time: %g)", start);
   for(l=0; l<4; l++) {
     now=gras_os_time();
     GRAS_BENCH_ONCE_RUN_ONCE_BEGIN();
@@ -66,11 +66,11 @@ int multiplier (int argc,char *argv[])
      A = malloc(n*n*sizeof(double));
     GRAS_BENCH_ONCE_RUN_ONCE_END();
     now=gras_os_time()-now;
-    INFO2("Iteration %d : %lg ", l, now);
+    INFO2("Iteration %d : %g ", l, now);
   }
    
   start=now=gras_os_time();
-  INFO1("Begin integer incrementation loop (time: %lg)", start);
+  INFO1("Begin integer incrementation loop (time: %g)", start);
   for(l=0; l<4; l++) {
     GRAS_BENCH_ONCE_RUN_ONCE_BEGIN();
     j++;