Package ac.boar.anticheat.util
Class LatencyUtil
java.lang.Object
ac.boar.anticheat.util.LatencyUtil
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglongbooleanlongLower 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.voidobserveInputArrival(long ns) voidonLatencyAccepted(LatencyUtil.Latency latency) booleanonResponse(long id) voidqueue(long id, boolean ours) voidqueueWithAcks(long id, List<Acknowledgment> acks)
-
Field Details
-
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
-
onLatencyAccepted
-
onResponse
public boolean onResponse(long id)
-