public Timer(Timeable owner,long interval){
  this.owner=owner;
  this.interval=interval;
  remainingTime=interval;
  regular=true;
  sleepUntil=System.currentTimeMillis();
  stopped=true;
synchronized (getClass()) {
    if (timerThread == null) {
      timerThread=new TimerThread();
    }
  }
}

public Timer ( Timeable owner , long interval ) { this . owner = owner ; this . interval = interval ; remainingTime = interval ; regular = true ; sleepUntil = System . currentTimeMillis ( ) ; stopped = true ; synchronized ( getClass ( ) ) { if ( timerThread == null ) { timerThread = new TimerThread ( ) ; } } }
creates a timer object that is owned by ' owner ' and with the interval ' interval ' milliseconds . the new timer object is stopped and is regular . getremainingtime ( ) return ' interval ' at this point . getstoptime ( ) returns the time this object was created .
