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 long
calcCurrentTimeNanos
(long currentTimeNanos) long
long
long
-
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:
currentTimeMillis
in interfacecom.fishlib.base.clock.Clock
-
currentTimeMicros
public long currentTimeMicros()- Specified by:
currentTimeMicros
in interfacecom.fishlib.base.clock.Clock
-
currentTimeNanos
public long currentTimeNanos() -
calcCurrentTimeNanos
-