From f174d1c9a6832e671008c0f9e72693dd25bf1950 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 23 Oct 2012 14:33:09 -0400 Subject: Carpet: Re-indent timer macros --- Carpet/Carpet/src/Timers.hh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Carpet/Carpet/src/Timers.hh b/Carpet/Carpet/src/Timers.hh index e5de64479..c3ee01c6f 100644 --- a/Carpet/Carpet/src/Timers.hh +++ b/Carpet/Carpet/src/Timers.hh @@ -65,18 +65,17 @@ Timer objects can be allocated as "static" or not - it does not matter. }; // Macros for using timers in a convenient manner - -#define TIMING_BEGIN(name) \ - { \ - static Carpet::Timer timer (name); \ - timer.start(); \ + +#define TIMING_BEGIN(name) \ + do { \ + static Carpet::Timer timer (name); \ + timer.start(); \ { - #define TIMING_END \ - } \ + } \ timer.stop(); \ -} while (0) - + } while (0) + } // namespace Carpet #endif // TIMERS_HH -- cgit v1.2.3