summaryrefslogtreecommitdiffstats
path: root/timer/com/vladium/utils/timing/ITimerConstants.java
diff options
context:
space:
mode:
authorStiver <stiver.mail@gmail.com>2014-03-04 15:13:11 +0100
committerStiver <stiver.mail@gmail.com>2014-03-04 15:13:11 +0100
commite2d0f5d9c38561d67f23754c00addb4a3547efb2 (patch)
tree1832f16037c086b48266b8566aecc61f45f4e5f1 /timer/com/vladium/utils/timing/ITimerConstants.java
downloadfernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.gz
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.lz
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.xz
fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.zip
initial commit
Diffstat (limited to 'timer/com/vladium/utils/timing/ITimerConstants.java')
-rw-r--r--timer/com/vladium/utils/timing/ITimerConstants.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/timer/com/vladium/utils/timing/ITimerConstants.java b/timer/com/vladium/utils/timing/ITimerConstants.java
new file mode 100644
index 0000000..29435ae
--- /dev/null
+++ b/timer/com/vladium/utils/timing/ITimerConstants.java
@@ -0,0 +1,31 @@
+
+package com.vladium.utils.timing;
+
+// ----------------------------------------------------------------------------
+/**
+ * A package-private collection of constants used by {@link ITimer} implementations
+ * in <code>HRTimer</code> and <code>JavaSystemTimer</code> classes.
+ *
+ * @author (C) <a href="mailto:vroubtsov@illinoisalumni.org">Vlad Roubtsov</a>, 2002
+ */
+interface ITimerConstants
+{
+ // public: ................................................................
+
+ /**
+ * Conditional compilation flag to enable/disable state checking in timer
+ * implementations. Just about the only reason you might want to disable
+ * this is to reduce the timer overhead, but in practice the gain is very
+ * small. */
+ static final boolean DO_STATE_CHECKS = true;
+
+ /**
+ * Timer state enumeration. */
+ static final int STATE_READY = 0, STATE_STARTED = 1, STATE_STOPPED = 2;
+
+ /**
+ * User-friendly timer state names indexed by their state values. */
+ static final String [] STATE_NAMES = {"READY", "STARTED", "STOPPED"};
+
+} // end of interface
+// ----------------------------------------------------------------------------