Package org.drasyl.handler
Class PeersRttHandler.PeerRtt
java.lang.Object
org.drasyl.handler.PeersRttHandler.PeerRtt
- Enclosing class:
- PeersRttHandler
-
Field Details
-
RTTS_COUNT
public static final int RTTS_COUNT- See Also:
-
-
Method Details
-
role
-
inetAddress
-
sent
public long sent()- Returns:
- number of pings sent
-
last
public long last()- Returns:
- RTT of last ping
-
average
public double average()- Returns:
- average RTT
-
best
public long best()- Returns:
- best RTT
-
worst
public long worst()- Returns:
- worst RTT
-
stDev
public double stDev()- Returns:
- RTT standard deviation
-