MPI Distrib exp: added timer for main program.

This commit is contained in:
Benjamin BOUVIER 2012-09-18 22:18:35 -04:00
commit a4ec17a193

View file

@ -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