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

标签 networking network-programming ping utility traceroute

当我 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 获得微秒分辨率。 .

enter image description here

关于networking - 如何获得以纳秒为单位的 ping 时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31313366/

相关文章:

java - 我应该使用操作系统套接字缓冲区作为消息队列吗?

sockets - TCP - 发送和接收 TCP/IP 数据

c# - 计算最小/最大/平均 ping 响应

ios - 如何在 Objective-C 中使用 NSURLSession 从服务器下载 100 张图像

java - 如何在 Java 中确定 Internet 网络接口(interface)

networking - 捕获 Windows XP 本地主机 TCP 流量

c# - 代理验证错误

java - 使用 Android 手机控制桌面应用程序

c# - 使用Ping映射事件IP的线程问题-C#

virtualbox - VM 无法在 VirtualBox 仅主机网络中 ping 主机