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 TypeMethodDescriptionlong
long
long
-
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:
currentTimeMillis
in interfaceClock
-
currentTimeMicros
public long currentTimeMicros()- Specified by:
currentTimeMicros
in interfaceClock
-
currentTimeNanos
public long currentTimeNanos()- Specified by:
currentTimeNanos
in interfaceClock
-
instantNanos
- Specified by:
instantNanos
in interfaceClock
-
instantMillis
- Specified by:
instantMillis
in interfaceClock
-