org.jsmpp.util
Class StopWatch

java.lang.Object
  extended by org.jsmpp.util.StopWatch

public class StopWatch
extends java.lang.Object

Simple utility class for watching performance of method invocation.

Author:
uudashr

Constructor Summary
StopWatch()
           
 
Method Summary
 long done()
          Done watching the delay and return the delay between start time to current time.
 long start()
          Start the stop watch.
 
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

start

public long start()
Start the stop watch.

Returns:
the current time in millisecond.

done

public long done()
Done watching the delay and return the delay between start time to current time.

Returns:
the delay between start time to current time