com.tivoli.pd.jazn.LRAdemo
Class Timer

java.lang.Object
  extended bycom.tivoli.pd.jazn.LRAdemo.Timer

public class Timer
extends java.lang.Object

Class that allows time to be measure around java code. Note that the timing may be affected by the operating systems processing swapping and are not exact Note that if the start method is not followed by a stop method call then the getTime method will not be reliable.


Constructor Summary
Timer()
           
 
Method Summary
 long getTime()
          Retrieves the differnce between the stop time and the start time.
 void start()
          Starts the timer
 void stop()
          Stops the timer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Method Detail

start

public void start()
Starts the timer


stop

public void stop()
Stops the timer


getTime

public long getTime()
Retrieves the differnce between the stop time and the start time.

Returns:
long time_measured