public class InternalSystemClock extends Object implements SystemClock
| Constructor and Description |
|---|
InternalSystemClock() |
| Modifier and Type | Method and Description |
|---|---|
ZonedDateTime |
getCurrentTime()
Find the current system time.
|
void |
pauseFor(long timeInMilliseconds)
Pause execution for the requested delay.
|
protected void |
sleepFor(long timeInMilliseconds) |
public void pauseFor(long timeInMilliseconds)
pauseFor in interface SystemClockprotected void sleepFor(long timeInMilliseconds)
throws InterruptedException
InterruptedExceptionpublic ZonedDateTime getCurrentTime()
getCurrentTime in interface SystemClockCopyright © 2022. All rights reserved.