/** Step simulated time base by n ticks */ public static void step(long n) { if (!isSimulated) { throw new IllegalStateException("Can't step TimeBase when in real mode"); } simulatedTime += n; // ensure that all timer queue events whose time has come get executed // before this returns TimerQueue.runAllExpired(); }