public static interface Clock.WarpingTimeSource
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
Get the current time in milliseconds since start of epoch.
|
void |
setCurrentTimeMillis(long ms)
Set the current time in milliseconds since start of epoch.
|
void |
setTimeOffset(long ms)
Set the milliseconds of time offset relative to current time.
|
boolean |
supportsWarping()
Predicate that allows callers to determine whether the time-source
supports warping operations.
|
long currentTimeMillis()
System.currentTimeMillis()
boolean supportsWarping()
void setCurrentTimeMillis(long ms)
ms
- number of milliseconds elapsed since start of epoch that comprises the current timeUnsupportedOperationException
- thrown if the source does
not support time warpingSystem.currentTimeMillis()
void setTimeOffset(long ms)
ms
- number of milliseconds of offset from the current timeUnsupportedOperationException
- thrown if the source does
not support time warpingCopyright © 2015. All Rights Reserved.