org.globus.cog.util.timer
Class Timer

java.lang.Object
  extended byorg.globus.cog.util.timer.Timer
All Implemented Interfaces:
Runnable

public class Timer
extends Object
implements Runnable


Constructor Summary
Timer()
           
Timer(long millis)
           
 
Method Summary
 void addTimerListener(TimerListener tl)
           
 long getDuration()
           
 long getElapsedTime()
           
 long getStartTime()
           
 long getStopTime()
           
 void removeTimerListener(TimerListener tl)
           
 void run()
           
 void setDuration(long millis)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()

Timer

public Timer(long millis)
Method Detail

addTimerListener

public void addTimerListener(TimerListener tl)

removeTimerListener

public void removeTimerListener(TimerListener tl)

setDuration

public void setDuration(long millis)

getDuration

public long getDuration()

getStartTime

public long getStartTime()

getStopTime

public long getStopTime()

getElapsedTime

public long getElapsedTime()

run

public void run()
Specified by:
run in interface Runnable

start

public final void start()

stop

public final void stop()