aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Timers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/Timers.cc')
-rw-r--r--Carpet/Carpet/src/Timers.cc34
1 files changed, 29 insertions, 5 deletions
diff --git a/Carpet/Carpet/src/Timers.cc b/Carpet/Carpet/src/Timers.cc
index 265c2cd4c..c279bf0cc 100644
--- a/Carpet/Carpet/src/Timers.cc
+++ b/Carpet/Carpet/src/Timers.cc
@@ -3,10 +3,9 @@
#include <cstring>
#include <list>
-#include "cctk.h"
-#include "cctk_Parameters.h"
-
-#include "util_String.h"
+#include <cctk.h>
+#include <cctk_Parameters.h>
+#include <util_String.h>
#if HAVE_UNISTD_H
# include <fcntl.h>
@@ -15,7 +14,7 @@
#include <defs.hh>
-#include "Timers.hh"
+#include <Timers.hh>
@@ -236,6 +235,8 @@ namespace Carpet {
case val_double:
printf (" %g", timer->vals[i].val.d);
break;
+ case val_none:
+ break;
default:
assert (0);
}
@@ -245,4 +246,27 @@ namespace Carpet {
if (was_running) start();
}
+
+
+ // Output (debug) messages that a timer is starting or stopping
+ void
+ Timer::msgStart ()
+ const
+ {
+ DECLARE_CCTK_PARAMETERS;
+ if (timers_verbose) {
+ CCTK_VInfo (CCTK_THORNSTRING, "Timer \"%s\" starting", name());
+ }
+ }
+
+ void
+ Timer::msgStop ()
+ const
+ {
+ DECLARE_CCTK_PARAMETERS;
+ if (timers_verbose) {
+ CCTK_VInfo (CCTK_THORNSTRING, "Timer \"%s\" stopping", name());
+ }
+ }
+
} // namespace Carpet