X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a201b7ceece70d2bc461ac48c8b746a36d07243..ec63b14f8fcd0a88515e4260e00c41b77c0274cc:/examples/gras/chrono/chrono.c?ds=sidebyside diff --git a/examples/gras/chrono/chrono.c b/examples/gras/chrono/chrono.c index 4b530c5823..8dba5771f5 100644 --- a/examples/gras/chrono/chrono.c +++ b/examples/gras/chrono/chrono.c @@ -1,6 +1,7 @@ /* chrono - demo of GRAS benchmarking features */ -/* Copyright (c) 2005 Martin Quinson, Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2005, 2007, 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. */ @@ -30,7 +31,7 @@ int multiplier(int argc, char *argv[]) start = now = gras_os_time(); - INFO1("Begin matrix multiplication loop (time: %g)", start); + XBT_INFO("Begin matrix multiplication loop (time: %g)", start); for (l = 0; l < 4; l++) { now = gras_os_time(); @@ -49,15 +50,15 @@ int multiplier(int argc, char *argv[]) GRAS_BENCH_ONCE_RUN_ONCE_END(); now = gras_os_time() - now; - INFO2("Iteration %d : %g ", l, now); + XBT_INFO("Iteration %d : %g ", l, now); } now = gras_os_time() - start; - INFO2("End matrix multiplication loop (time: %g; Duration: %g)", + XBT_INFO("End matrix multiplication loop (time: %g; Duration: %g)", gras_os_time(), now); start = now = gras_os_time(); - INFO1("Begin malloc loop (time: %g)", start); + XBT_INFO("Begin malloc loop (time: %g)", start); for (l = 0; l < 4; l++) { now = gras_os_time(); GRAS_BENCH_ONCE_RUN_ONCE_BEGIN(); @@ -65,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 : %g ", l, now); + XBT_INFO("Iteration %d : %g ", l, now); } start = now = gras_os_time(); - INFO1("Begin integer incrementation loop (time: %g)", start); + XBT_INFO("Begin integer incrementation loop (time: %g)", start); for (l = 0; l < 4; l++) { GRAS_BENCH_ONCE_RUN_ONCE_BEGIN(); j++;