This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The rtt read-only property of the NetworkInformation interface returns the round-trip time estimate in milliseconds, rounded to the nearest multiple of 25 milliseconds. This value is based on recently observed application-layer round-trip time measurements across recently active connections, excluding connections made to private address space. In the absence of data, this value is determined by the properties of the underlying connection technology.


var rtt = NetworkInformation.rtt


A Double.


Specification Status Comment
Network Information API
The definition of 'rtt' in that specification.
Editor's Draft Initial definition.

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 61 ? ? 48 ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support 61 61 ? ? ? 48 ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.