*/
public void check() throws TimeoutException, TimerInterruptedException {
if ( interrupted ) {
interrupted = false;
throw new TimerInterruptedException("Timer " + getName() + " interrupted.");
}
long elapsed = getElapsed();
if (timeout != NO_TIMEOUT && elapsed > timeout) {