function measureGetStatsCallbackPerformance() {
  let t0 = performance.now();
  peerConnection_().getStats(
    function(response) {
      let t1 = performance.now();
      returnToTest('ok-' + (t1 - t0));
    });
}
/**
 * Measures the performance of the legacy (callback-based)
 * |RTCPeerConnection.getStats| and returns the time it took in milliseconds as
 * a double (DOMHighResTimeStamp, accurate to one thousandth of a millisecond).
 *
 * Returns "ok-" followed by a double.
 */
Measures the performance of the legacy (callback-based)
|RTCPeerConnection.getStats| and returns the time it took in milliseconds as
a double (DOMHighResTimeStamp, accurate to one thousandth of a millisecond).

Returns "ok-" followed by a double.
Measures the performance of the legacy ( callback - based ) |RTCPeerConnection . getStats| and returns the time it took in milliseconds as a double ( DOMHighResTimeStamp accurate to one thousandth of a millisecond ) . Returns " ok - " followed by a double .
function measureGetStatsCallbackPerformance() {
  let t0 = performance.now();
  peerConnection_().getStats(
    function(response) {
      let t1 = performance.now();
      returnToTest('ok-' + (t1 - t0));
    });
}
function measureGetStatsCallbackPerformance ( ) { let t0 = performance . now ( ) ; peerConnection_ ( ) . getStats ( function ( response ) { let t1 = performance . now ( ) ; returnToTest ( 'ok-' + ( t1 - t0 ) ) ; } ) ; }
Measures the performance of the legacy (callback-based)
 |RTCPeerConnection.getStats| and returns the time it took in milliseconds as
 a double (DOMHighResTimeStamp, accurate to one thousandth of a millisecond).
Measures the performance of the legacy ( callback - based ) |RTCPeerConnection . getStats| and returns the time it took in milliseconds as a double ( DOMHighResTimeStamp accurate to one thousandth of a millisecond ) .