org.apache.curator
Class TimeTrace

java.lang.Object
  extended by org.apache.curator.TimeTrace

public class TimeTrace
extends Object

Utility to time a method or portion of code


Constructor Summary
TimeTrace(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(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



Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.