Package net.serenitybdd.core.time
Class InternalSystemClock
java.lang.Object
net.serenitybdd.core.time.InternalSystemClock
- All Implemented Interfaces:
SystemClock
Object that encapsulates system clock operations.
-
Constructor Details
-
InternalSystemClock
public InternalSystemClock()
-
-
Method Details
-
pauseFor
public void pauseFor(long timeInMilliseconds) Pause execution for the requested delay. Throws a runtime exception if something goes wrong.- Specified by:
pauseForin interfaceSystemClock
-
sleepFor
- Throws:
InterruptedException
-
getCurrentTime
Find the current system time.- Specified by:
getCurrentTimein interfaceSystemClock
-