[slf4j-dev] svn commit: r1076 - slf4j/trunk/slf4j-ext/src/main/java/org/slf4j/profiler

ceki at slf4j.org ceki at slf4j.org
Wed Jul 23 22:45:44 CEST 2008


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();
+}



More information about the slf4j-dev mailing list