org.apache.accumulo.core.util
Class StopWatch<K extends Enum<K>>

java.lang.Object
  extended by org.apache.accumulo.core.util.StopWatch<K>

public class StopWatch<K extends Enum<K>>
extends Object


Constructor Summary
StopWatch(Class<K> k)
           
 
Method Summary
 long get(K timer)
           
 double getSecs(K timer)
           
 void print()
           
 void reset(K timer)
           
 void start(K timer)
           
 void stop(K timer)
           
 void stopIfActive(K timer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopWatch

public StopWatch(Class<K> k)
Method Detail

start

public void start(K timer)

stopIfActive

public void stopIfActive(K timer)

stop

public void stop(K timer)

reset

public void reset(K timer)

get

public long get(K timer)

getSecs

public double getSecs(K timer)

print

public void print()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.