org.elasticsearch.common.inject.internal
Class Stopwatch

java.lang.Object
  extended by org.elasticsearch.common.inject.internal.Stopwatch

public class Stopwatch
extends Object

Enables simple performance monitoring.

Author:
crazybob@google.com (Bob Lee)

Constructor Summary
Stopwatch()
           
 
Method Summary
 long reset()
          Resets and returns elapsed time in milliseconds.
 void resetAndLog(String label)
          Resets and logs elapsed time in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stopwatch

public Stopwatch()
Method Detail

reset

public long reset()
Resets and returns elapsed time in milliseconds.


resetAndLog

public void resetAndLog(String label)
Resets and logs elapsed time in milliseconds.



Copyright © 2009-2012. All Rights Reserved.