X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Ftimer.h;h=705627f703dd561a8b63555343843a686ddf3526;hb=e36dfad3f0818b4c3457fbe7277faa6f4ca28dfe;hp=781ee941c9fdec87e207a8f945a97d4d2ddbef1c;hpb=8c23e6b9615942ac464414b788c5f68b7f66e39d;p=ctsim.git 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)