double dur; mpiPi_GETTIME (&mpiPi.apptimer, &mpiPi.endTime);  if(mpiPi.enabled) { dur = (mpiPi_GETTIMEDIFF (&mpiPi.apptimer, &mpiPi.endTime, &mpiPi.startTime)/1000000.0); mpiPi.cumulativeTime += dur; }  if (time (&mpiPi.stop_timeofday) == (time_t) - 1) { mpiPi_msg_warn ("Could not get time of day from time()\n"); }   mpiPi_collect_basics (); if ( mpiPi_mergeResults () ) mpiPi_publishResults ();
mpiPi_generateReport();
mpiPi_finalize (){  double dur;  mpiPi_GETTIME (&mpiPi.apptimer, &mpiPi.endTime);  if(mpiPi.enabled)    {      dur = (mpiPi_GETTIMEDIFF (&mpiPi.apptimer, &mpiPi.endTime, &mpiPi.startTime)/1000000.0);      mpiPi.cumulativeTime += dur;    }  if (time (&mpiPi.stop_timeofday) == (time_t) - 1)    {      mpiPi_msg_warn ("Could not get time of day from time()\n");    }  /* collect results and publish */  mpiPi_collect_basics ();  if ( mpiPi_mergeResults () )    mpiPi_publishResults ();  /* clean up data structures, etc */  h_close (mpiPi.task_callsite_stats);  return;}