This method of the Timer Class adds a listener to the timer.
public void addTimerListener(TimerListener listener);