com.netflix.curator
Class TimeTrace

java.lang.Object
  extended by com.netflix.curator.TimeTrace

public class TimeTrace
extends java.lang.Object

Utility to time a method or portion of code


Constructor Summary
TimeTrace(java.lang.String name, TracerDriver driver)
          Create and start a timer
 
Method Summary
 void commit()
          Record the elapsed time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeTrace

public TimeTrace(java.lang.String name,
                 TracerDriver driver)
Create and start a timer

Parameters:
name - name of the event
driver - driver
Method Detail

commit

public void commit()
Record the elapsed time