Package io.deephaven.enterprise.replay
Class DeltaClockWithSpeed
java.lang.Object
io.deephaven.enterprise.replay.DeltaClockWithSpeed
- All Implemented Interfaces:
Clock
A clock impl with a delta adjustment and a speed factor.
-
Constructor Summary
ConstructorsConstructorDescriptionDeltaClockWithSpeed(@NotNull Clock delegate, long deltaNanos, double speedFactor) Constructs a delta clock with the provided clock and delta. -
Method Summary
Modifier and TypeMethodDescriptionlonglonglong
-
Constructor Details
-
DeltaClockWithSpeed
Constructs a delta clock with the provided clock and delta.- Parameters:
delegate- the base clockdeltaNanos- the delta nanos
-
-
Method Details
-
currentTimeMillis
public long currentTimeMillis()- Specified by:
currentTimeMillisin interfaceClock
-
currentTimeMicros
public long currentTimeMicros()- Specified by:
currentTimeMicrosin interfaceClock
-
currentTimeNanos
public long currentTimeNanos()- Specified by:
currentTimeNanosin interfaceClock
-
instantNanos
- Specified by:
instantNanosin interfaceClock
-
instantMillis
- Specified by:
instantMillisin interfaceClock
-