Author: ceki
Date: Wed Jul 23 22:45:44 2008
New Revision: 1076

Added:
   slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/TimeInstrument.java

Log:
- TimeInstrument was omitted in the previous commit by mistake

Added: 
slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/TimeInstrument.java
==============================================================================
--- (empty file)
+++ slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler/TimeInstrument.java  
Wed Jul 23 22:45:44 2008
@@ -0,0 +1,24 @@
+package org.slf4j.profiler;
+
+public interface TimeInstrument {
+
+  /**
+   * All time instruments are named entities.
+   * @return the name of this instrument
+   */
+  String getName();
+  
+  
+  TimeInstrumentStatus getStatus();
+  void start(String name);
+  TimeInstrument stop();
+
+  /**
+   * Time elapsed between start and stop, in nanoseconds.
+   * 
+   * @return time elapsed in nanoseconds
+   */
+  long elapsedTime();
+  
+  void print();
+}
_______________________________________________
dev mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to