stella.util
Class GuiderTimer

java.lang.Object
  extended by stella.util.GuiderTimer

public class GuiderTimer
extends Object

A timer with similar methods the Timer. It is used to avoid the time-lacking experienced with SUN's class on the adapter guider


Field Summary
private  long first
          The first execution of the loop task.
private  long last
          The last execution of the timer task.
private  TimerTask loop
          The only task to be looped.
 
Constructor Summary
GuiderTimer()
          Constructs a new guider timer.
 
Method Summary
 void scheduleAtFixedRate(TimerTask todo, long delay, long dt)
          Schedulers a timer task with a fixed rate and a given delay and repetition time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loop

private TimerTask loop
The only task to be looped.


first

private long first
The first execution of the loop task.


last

private long last
The last execution of the timer task.

Constructor Detail

GuiderTimer

public GuiderTimer()
Constructs a new guider timer. As soon as a task is scheduled, it begins executing.

Method Detail

scheduleAtFixedRate

public void scheduleAtFixedRate(TimerTask todo,
                                long delay,
                                long dt)
Schedulers a timer task with a fixed rate and a given delay and repetition time.