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:
  • 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 interface com.fishlib.base.clock.Clock
    • currentTimeMicros

      public long currentTimeMicros()
      Specified by:
      currentTimeMicros in interface com.fishlib.base.clock.Clock
    • currentTimeNanos

      public long currentTimeNanos()
    • calcCurrentTimeNanos

      @VisibleForTesting protected long calcCurrentTimeNanos(long currentTimeNanos)