public interface SleepRobot
Modifier and Type | Method and Description |
---|---|
void |
sleep(long milliseconds)
Same as Thread.sleep(), but without checked exceptions.
|
void |
sleep(long duration,
TimeUnit timeUnit)
Same as Thread.sleep(), but without checked exceptions.
|
void sleep(long milliseconds)
milliseconds
- the duration in millisecondsvoid sleep(long duration, TimeUnit timeUnit)
duration
- the durationtimeUnit
- the unit of time