Class TestClock

java.lang.Object
com.gtnewhorizons.horizonqa.internal.TestClock

public final class TestClock extends Object
Monotonic logical tick counter shared by a single TestEventRecorder. Advanced once per server tick by GameTestInstance#tick() and once per simulated tick by the time-warp handler, so the tick on a TestEvent reflects ticks of simulated machine time, not wall-clock server ticks.
  • Constructor Details

    • TestClock

      public TestClock()
  • Method Details

    • tick

      public int tick()
    • advance

      public void advance()