Class ManualClock

Object
io.delta.kernel.internal.util.ManualClock
All Implemented Interfaces:
Clock

public class ManualClock extends Object implements Clock
A clock whose time can be manually set and modified.
  • Constructor Details

    • ManualClock

      public ManualClock(long timeMillis)
  • Method Details

    • setTime

      public void setTime(long timeToSet)
      Parameters:
      timeToSet - new time (in milliseconds) that the clock should represent
    • getTimeMillis

      public long getTimeMillis()
      Specified by:
      getTimeMillis in interface Clock
      Returns:
      Current system time, in ms.