Class PingResponse
java.lang.Object
net.ME1312.SubData.Server.Library.PingResponse
Ping Response Class
All values presented by this class have been recorded in nanoseconds
All values presented by this class have been recorded in nanoseconds
-
Constructor Summary
ConstructorDescriptionPingResponse
(long[] timings) Calculates and stores the meaning of a ping using its recorded timings -
Method Summary
Modifier and TypeMethodDescriptionlong
Deprecated.Get how long it took to download the ping responselong
Get how long the ping waited in a queue on this machinelong
Get how long the ping waited in a queuelong
Get how long the ping waited in a queue on the remote machinelong
Get how long it took to receive the ping response in totallong
Get how long it took to transfer the ping over the network in both directionslong
Deprecated.Get how long it took to upload the ping
-
Constructor Details
-
PingResponse
public PingResponse(long[] timings) Calculates and stores the meaning of a ping using its recorded timings- Parameters:
timings
- Ping Timings
-
-
Method Details
-
getLocalQueueTime
public long getLocalQueueTime()Get how long the ping waited in a queue on this machine- Returns:
- Local Queue Time
-
getRemoteQueueTime
public long getRemoteQueueTime()Get how long the ping waited in a queue on the remote machine- Returns:
- Remote Queue Time
-
getQueueTime
public long getQueueTime()Get how long the ping waited in a queue- Returns:
- Queue Time
-
getUploadTime
Deprecated.Get how long it took to upload the ping -
getDownloadTime
Deprecated.Get how long it took to download the ping response -
getTransferTime
public long getTransferTime()Get how long it took to transfer the ping over the network in both directions- Returns:
- Transfer Time
-
getResponseTime
public long getResponseTime()Get how long it took to receive the ping response in total- Returns:
- Response Time
-