当我 ping 到 192.168.11.101 时,它以毫秒为单位给出 ping 时间
Ping statistics for 192.168.11.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 0ms
我需要以纳秒 (ns) 为单位的时间。
最佳答案
我认为您不会找到以纳秒分辨率工作的实用程序,因为操作系统没有那么精确。但在 Windows 上,您可以使用 hrPing 获得微秒分辨率。 .
关于networking - 如何获得以纳秒为单位的 ping 时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31313366/