public synchronized boolean advanceBy ( long amount , TimeUnit unit ) { long endingTime = currentTime + unit . toMillis ( amount ) ; return advanceTo ( endingTime ) ; }
Run all runnables that are scheduled to run in the next time interval .