如何以纳秒为单位获得ping时间?

时间:2015-07-09 09:25:15

标签: networking network-programming ping utility traceroute

当我ping到192.168.11.101时,它以ms为单位给出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)。

1 个答案:

答案 0 :(得分:1)

我认为您不会发现以纳秒分辨率工作的实用程序,因为操作系统并不精确。但在Windows上,您可以使用hrPing获得微秒分辨率。

enter image description here