X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d3546624f31ddb7580a5d7e7e4f66e00e05041d6..b777cd7570d38c138ba99fc044fe55dc9a44b3aa:/examples/gras/chrono/chrono.c diff --git a/examples/gras/chrono/chrono.c b/examples/gras/chrono/chrono.c index eb31f9a882..74c3c341e9 100644 --- a/examples/gras/chrono/chrono.c +++ b/examples/gras/chrono/chrono.c @@ -20,18 +20,22 @@ int multiplier (int argc,char *argv[]) { int i,j,k,l; double *A,*B,*C; - int n = 500; + int n = 100; 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)); C = malloc(n*n*sizeof(double)); - INFO1("Before computation: %lg", start=gras_os_time()); + start=now=gras_os_time(); + + INFO1("Begin matrix multiplication loop (time: %lg)", start); for(l=0; l<4; l++) { + now=gras_os_time(); GRAS_BENCH_ONCE_RUN_ONCE_BEGIN(); for(i=0; i