public interface Timing
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis() |
void |
sleep(int millis)
Sleeps with throwing an InterruptedException
|
void |
sleepUninterruptibly(int millis)
Sleeps without throwing an InterruptedException
|
long currentTimeMillis()
void sleep(int millis) throws InterruptedException
millis
- The time to sleep in millisecondsInterruptedException
- If interrputed is calledvoid sleepUninterruptibly(int millis)
millis
- The time to sleep in millisecondsCopyright © 2013. All Rights Reserved.