0

enter image description here I am trying to obtain the latency time between 2 servers. So how would it be possible to obtain it in milliseconds? Is round trip time calculated while pinging the same as latency time?

coder_24
  • 29
  • 1
  • 6
  • If what you are trying to do is finding the latency of 2 severs and you can't send a ping from one to another, as far I know thats not possible from a 3* server – MrVoid Mar 12 '18 at 11:42
  • I've left an answer with code over at the linked duplicate question https://stackoverflow.com/a/49236422/397817 – Stephen Kennedy Mar 12 '18 at 13:27

1 Answers1

0

Yes, just ping the other server, it's the latency. See this question for examples: Using ping in c#

Shai Katz
  • 1,603
  • 12
  • 22
  • I have added a screenshot in the question, ping returns me RTT with average, maximum and minimum time. So which time exactly would be required to calculate latency? – coder_24 Mar 12 '18 at 11:47
  • You probably want to take the average, you've sent 3 ping requests and they might return a bit different responses, so taking the average will reflect the most accurate estimation. – Shai Katz Mar 12 '18 at 13:28