X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Ftimer.h;h=705627f703dd561a8b63555343843a686ddf3526;hp=781ee941c9fdec87e207a8f945a97d4d2ddbef1c;hb=3fba6928127cd65870bdcd96c8114ad5894247ae;hpb=8c23e6b9615942ac464414b788c5f68b7f66e39d diff --git a/include/timer.h b/include/timer.h index 781ee94..705627f 100644 --- a/include/timer.h +++ b/include/timer.h @@ -28,8 +28,9 @@ class Timer virtual double timerEndAndReport (const char* const msg) { - timerEnd (); + double t = timerEnd (); timerReport (msg); + return (t); } double getTimeElapsed (void) const @@ -83,8 +84,9 @@ class TimerMPI : public Timer virtual double timerEndAndReport (const char* const msg) { - timerEnd (); + double t = timerEnd (); timerReport (msg); + return (t); } virtual void timerReportAllProcesses (const char* const msg) @@ -121,8 +123,9 @@ class TimerCollectiveMPI : public TimerMPI virtual double timerEndAndReport (const char* const msg) { - timerEnd (); + double t = timerEnd (); timerReport (msg); + return (t); } virtual void timerReport (const char* const msg)