From a4ec17a1930f342bbd6e87ff0cda32374b099295 Mon Sep 17 00:00:00 2001 From: Benjamin BOUVIER Date: Tue, 18 Sep 2012 22:18:35 -0400 Subject: [PATCH] MPI Distrib exp: added timer for main program. --- eo/test/mpi/t-mpi-distrib-exp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eo/test/mpi/t-mpi-distrib-exp.cpp b/eo/test/mpi/t-mpi-distrib-exp.cpp index 8f675023..a21cb11f 100644 --- a/eo/test/mpi/t-mpi-distrib-exp.cpp +++ b/eo/test/mpi/t-mpi-distrib-exp.cpp @@ -281,6 +281,7 @@ int main( int argc, char** argv ) make_parallel( parser ); make_help( parser ); + timerStat.start("main"); if( !isChosenDistrib ) { @@ -298,6 +299,8 @@ int main( int argc, char** argv ) ParallelApply< type > job( scheduling, DEFAULT_MASTER, store ); job.run(); + + timerStat.stop("main"); if( job.isMaster() ) { EmptyJob( scheduling, DEFAULT_MASTER ); // to terminate parallel apply