Class DeltaOffsetWithSpeedClock
java.lang.Object
com.illumon.iris.controller.utils.DeltaOffsetWithSpeedClock
- All Implemented Interfaces:
com.fishlib.base.clock.Clock,Serializable
public class DeltaOffsetWithSpeedClock
extends Object
implements com.fishlib.base.clock.Clock, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fishlib.base.clock.Clock
com.fishlib.base.clock.Clock.Cached, com.fishlib.base.clock.Clock.CachedOnDemand, com.fishlib.base.clock.Clock.Factory, com.fishlib.base.clock.Clock.Null -
Field Summary
Fields inherited from interface com.fishlib.base.clock.Clock
NULL -
Constructor Summary
ConstructorsConstructorDescriptionDeltaOffsetWithSpeedClock(long deltaOffset, double speedFactor) DeltaOffsetWithSpeedClock(long startNanos, long deltaNanos, double speedFactor) -
Method Summary
Modifier and TypeMethodDescriptionprotected longcalcCurrentTimeNanos(long currentTimeNanos) longlonglong
-
Constructor Details
-
DeltaOffsetWithSpeedClock
public DeltaOffsetWithSpeedClock(long deltaOffset, double speedFactor) -
DeltaOffsetWithSpeedClock
public DeltaOffsetWithSpeedClock(long startNanos, long deltaNanos, double speedFactor)
-
-
Method Details
-
currentTimeMillis
public long currentTimeMillis()- Specified by:
currentTimeMillisin interfacecom.fishlib.base.clock.Clock
-
currentTimeMicros
public long currentTimeMicros()- Specified by:
currentTimeMicrosin interfacecom.fishlib.base.clock.Clock
-
currentTimeNanos
public long currentTimeNanos() -
calcCurrentTimeNanos
-