Class TimeSyncClient.PingMetadata

java.lang.Object
org.photonvision.jni.TimeSyncClient.PingMetadata
Enclosing class:
TimeSyncClient

public static class TimeSyncClient.PingMetadata extends Object
  • Field Details

    • offset

      public long offset
    • pingsSent

      public long pingsSent
    • pongsReceived

      public long pongsReceived
    • lastPongTime

      public long lastPongTime
    • rtt2

      public long rtt2
  • Constructor Details

    • PingMetadata

      public PingMetadata(long offset, long pingsSent, long pongsReceived, long lastPongTime, long rtt2)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • timeSinceLastPong

      public long timeSinceLastPong()
      How long, in us, since we last heard back from the server
      Returns:
      Time between last pong RX and now, or Long.MAX_VALUE if we have heard zero pongs