public void cont(){
synchronized (timerThread) {
synchronized (this) {
      if (stopped) {
        sleepUntil=Math.max(sleepUntil + 1,System.currentTimeMillis() + remainingTime);
        TimerThread.enqueue(this);
        stopped=false;
      }
    }
  }
}

public void cont ( ) { synchronized ( timerThread ) { synchronized ( this ) { if ( stopped ) { sleepUntil = Math . max ( sleepUntil + 1 , System . currentTimeMillis ( ) + remainingTime ) ; TimerThread . enqueue ( this ) ; stopped = false ; } } } }
continue the timer . the next tick will come at getremainingtime ( ) milliseconds later . if the timer is not stopped , this call will be a no - op . this method is mt - safe ; i . e . it is synchronized but for implementation reasons , the synchronized modifier cannot be included in the method declaration .
