Class LatencyUtil

java.lang.Object
ac.boar.anticheat.util.LatencyUtil

public final class LatencyUtil extends Object
  • Field Details

    • prevAcceptedLatency

      public LatencyUtil.Latency prevAcceptedLatency
    • prevAcceptedTime

      public volatile long prevAcceptedTime
  • Constructor Details

    • LatencyUtil

      public LatencyUtil()
  • Method Details

    • estimatedHandleNs

      public long estimatedHandleNs()
    • acknowledgmentReplyNs

      public long acknowledgmentReplyNs()
    • estimatedEarlyHandleNs

      public long estimatedEarlyHandleNs()
    • acknowledgmentGroup

      public long acknowledgmentGroup()
    • nowLowerBoundNs

      public long nowLowerBoundNs()
      Lower bound (proxy nanoTime) of the client's "now" during the tick that sent the last input, or Long.MIN_VALUE when no list was answered yet.
    • observeInputArrival

      public void observeInputArrival(long ns)
    • hasInFlight

      public boolean hasInFlight()
    • queue

      public void queue(long id, boolean ours)
    • queueWithAcks

      public void queueWithAcks(long id, List<Acknowledgment> acks)
    • onLatencyAccepted

      public void onLatencyAccepted(LatencyUtil.Latency latency)
    • onResponse

      public boolean onResponse(long id)