diff graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugTimer.java @ 12778:c125485642e2

added getCurrentValue() to both DebugTimer and DebugValue; added getTimeUnit() to DebugTimer
author Doug Simon <doug.simon@oracle.com>
date Tue, 19 Nov 2013 01:12:27 +0100
parents 6b6c6e5d0fc2
children 0dc0926cf0d8
line wrap: on
line diff
--- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugTimer.java	Mon Nov 18 14:27:48 2013 +0100
+++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugTimer.java	Tue Nov 19 01:12:27 2013 +0100
@@ -22,6 +22,8 @@
  */
 package com.oracle.graal.debug;
 
+import java.util.concurrent.*;
+
 import com.oracle.graal.debug.internal.*;
 
 /**
@@ -56,4 +58,14 @@
      * enabled}.
      */
     boolean isConditional();
+
+    /**
+     * Gets the current value of this timer.
+     */
+    long getCurrentValue();
+
+    /**
+     * Gets the time unit of this timer.
+     */
+    TimeUnit getTimeUnit();
 }