Package io.deephaven.enterprise.replay
Class DeltaClockWithAdjustableSpeed
java.lang.Object
io.deephaven.enterprise.replay.DeltaClockWithAdjustableSpeed
- All Implemented Interfaces:
- Clock
A clock impl with a delta adjustment and a speed factor.
 
The speed can be changed on the fly, which is a nifty trick for demos.
- 
Constructor SummaryConstructorsConstructorDescriptionDeltaClockWithAdjustableSpeed(@NotNull Clock delegate, long deltaNanos, double speedFactor) Constructs a delta clock with the provided clock and delta.
- 
Method Summary
- 
Constructor Details- 
DeltaClockWithAdjustableSpeedpublic DeltaClockWithAdjustableSpeed(@NotNull @NotNull Clock delegate, long deltaNanos, double speedFactor) Constructs a delta clock with the provided clock and delta.- Parameters:
- delegate- the base clock
- deltaNanos- the delta nanos
 
 
- 
- 
Method Details- 
setSpeedFactorpublic void setSpeedFactor(double newFactor) 
- 
getSpeedFactorpublic double getSpeedFactor()
- 
currentTimeMillispublic long currentTimeMillis()- Specified by:
- currentTimeMillisin interface- Clock
 
- 
currentTimeMicrospublic long currentTimeMicros()- Specified by:
- currentTimeMicrosin interface- Clock
 
- 
currentTimeNanospublic long currentTimeNanos()- Specified by:
- currentTimeNanosin interface- Clock
 
- 
instantNanos- Specified by:
- instantNanosin interface- Clock
 
- 
instantMillis- Specified by:
- instantMillisin interface- Clock
 
 
-