Package io.delta.kernel.internal.util
Class ManualClock
Object
io.delta.kernel.internal.util.ManualClock
- All Implemented Interfaces:
Clock
A clock whose time can be manually set and modified.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ManualClock
public ManualClock(long timeMillis)
-
-
Method Details
-
setTime
public void setTime(long timeToSet) - Parameters:
timeToSet
- new time (in milliseconds) that the clock should represent
-
getTimeMillis
public long getTimeMillis()- Specified by:
getTimeMillis
in interfaceClock
- Returns:
- Current system time, in ms.
-