X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fabf70a9d566725d01d925f83fae02ab82a95547..13fb4af932a02ea0bd4293d1e55ac071de326f80:/src/smpi/smpi_bench.cpp diff --git a/src/smpi/smpi_bench.cpp b/src/smpi/smpi_bench.cpp index de0878b487..f902f4e3d6 100644 --- a/src/smpi/smpi_bench.cpp +++ b/src/smpi/smpi_bench.cpp @@ -78,6 +78,13 @@ void smpi_execute(double duration) } } +void smpi_execute_benched(double duration) +{ + smpi_bench_end(); + smpi_execute(duration); + smpi_bench_begin(); +} + void smpi_bench_begin() { if (smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP) { @@ -421,7 +428,7 @@ extern "C" { /** These functions will be called from the user code **/ smpi_trace_set_call_location(file, *line); } - /** + /** * Required for Fortran if -fsecond-underscore is activated */ void smpi_trace_set_call_location__(const char* file, int* line) {