org.globus.cog.util.timer
Class Timer
java.lang.Object
org.globus.cog.util.timer.Timer
- All Implemented Interfaces:
- Runnable
- public class Timer
- extends Object
- implements Runnable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Timer
public Timer()
Timer
public Timer(long millis)
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()