edu.jhu.tmaj.util
Class StopWatch

java.lang.Object
  extended by edu.jhu.tmaj.util.StopWatch

public final class StopWatch
extends java.lang.Object

Class provides methods that allow tasks to be timed. This class is useful for determing slow areas of a program.


Constructor Summary
StopWatch()
           
 
Method Summary
 java.lang.String getPrintableString(java.lang.String eventName1, java.lang.String eventName2)
           
 long getTimeBetweenEvents(java.lang.String eventName1, java.lang.String eventName2)
           
 void registerEvent(java.lang.String eventName)
           
 
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

registerEvent

public void registerEvent(java.lang.String eventName)

getTimeBetweenEvents

public long getTimeBetweenEvents(java.lang.String eventName1,
                                 java.lang.String eventName2)

getPrintableString

public java.lang.String getPrintableString(java.lang.String eventName1,
                                           java.lang.String eventName2)