Constructor and Description |
---|
TimingImpl() |
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
|
public long currentTimeMillis()
currentTimeMillis
in interface Timing
public void sleep(int millis) throws InterruptedException
Timing
sleep
in interface Timing
millis
- The time to sleep in millisecondsInterruptedException
- If interrputed is calledpublic void sleepUninterruptibly(int millis)
Timing
sleepUninterruptibly
in interface Timing
millis
- The time to sleep in millisecondsCopyright © 2013. All Rights Reserved.