org.apache.curator
Class TimeTrace
java.lang.Object
org.apache.curator.TimeTrace
public class TimeTrace
- extends Object
Utility to time a method or portion of code
|
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 |
TimeTrace
public TimeTrace(String name,
TracerDriver driver)
- Create and start a timer
- Parameters:
name - name of the eventdriver - driver
commit
public void commit()
- Record the elapsed time
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.