NetworkInformation.rtt
Experimental
这是一个实验中的功能
此功能某些浏览器尚在开发中,请参考浏览器兼容性表格以得到在不同浏览器中适合使用的前缀。由于该功能对应的标准文档可能被重新修订,所以在未来版本的浏览器中该功能的语法和行为可能随之改变。
NetworkInformation.rtt 是一个只读属性,返回了当前连接下评估的往返时延(RTT, round-trip time ),并保留该值为25千分秒的最接近的整数倍。该值基于最近使用中被监测的最近保持活跃连接的应用层上的RTT测量值。它排除了到私有地址空间的连接。如果没有最近的测量数据,该值就基于底层连接技术的属性。
Note: 此特性在 Web Worker 中可用。
Syntax
rtt = NetworkInformation.rtt
Return value
一个数字。
Specifications
Specification | Status | Comment |
---|---|---|
Network Information API rtt |
Draft | Initial definition |
Browser compatibility
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 61 | 未实现 | 未实现 | 48 | 未实现 |
Available in workers | 61 | 未实现 | 未实现 | 48 | 未实现 |
Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 50 | 38 | 31.0 (31) | 未实现 | 37 | 未实现 |
Available in workers | 50 | 38 | 53.0 (53) | 未实现 | 37 | 未实现 |