--- title: NetworkInformation.rtt slug: Web/API/NetworkInformation/rtt translation_of: Web/API/NetworkInformation/rtt ---
{{apiref("Network Information API")}}{{SeeCompatTable}}
NetworkInformation.rtt 是一个只读属性,返回了当前连接下评估的往返时延(RTT, round-trip time ),并保留该值为25千分秒的最接近的整数倍。该值基于最近使用中被监测的最近保持活跃连接的应用层上的RTT测量值。它排除了到私有地址空间的连接。如果没有最近的测量数据,该值就基于底层连接技术的属性。
{{AvailableInWorkers}}
rtt = NetworkInformation.rtt
一个数字。
Specification | Status | Comment |
---|---|---|
{{SpecName('Network Information', '#dom-networkinformation-rtt', 'rtt')}} | {{Spec2('Network Information')}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatChrome(61)}} | {{CompatNo}} | {{CompatNo}} | {{CompatOpera(48)}} | {{CompatNo}} |
Available in workers | {{CompatChrome(61)}} | {{CompatNo}} | {{CompatNo}} | {{CompatOpera(48)}} | {{CompatNo}} |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatChrome(50)}} | {{CompatChrome(38)}} | {{CompatGeckoMobile("31")}} | {{CompatNo}} | {{CompatOperaMobile(37)}} | {{CompatNo}} |
Available in workers | {{CompatChrome(50)}} | {{CompatChrome(38)}} | {{CompatGeckoMobile("53")}} | {{CompatNo}} | {{CompatOperaMobile(37)}} | {{CompatNo}} |