aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/timestat.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-10-10 16:59:41 -0400
committerErik Schnetter <schnetter@gmail.com>2013-10-10 16:59:41 -0400
commit369933761ae450342b1771b561da3796c18c0f6e (patch)
treed676ae7520c076e3a41aef1bcf9cb7035284f5ce /Carpet/CarpetLib/src/timestat.hh
parentb991b3a287c25a543b5c6bb81273e88d50893e55 (diff)
Carpet: Make dependency on CycleClock optional
Diffstat (limited to 'Carpet/CarpetLib/src/timestat.hh')
-rw-r--r--Carpet/CarpetLib/src/timestat.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/timestat.hh b/Carpet/CarpetLib/src/timestat.hh
index a773c4d2e..5e008f727 100644
--- a/Carpet/CarpetLib/src/timestat.hh
+++ b/Carpet/CarpetLib/src/timestat.hh
@@ -8,6 +8,12 @@
#include <cctk.h>
#include <cycleclock.h>
+#ifndef HAVE_TICK_COUNTER
+typedef int ticks;
+inline ticks getticks() { return 0; }
+inline double seconds_per_tick(void) { return 0.0; }
+inline void measure_tick(void) {}
+#endif