import { isPerformanceAPIAvailable } from './is-performance-api-available';
export function getRequestToResponseTime() {
  if (!isPerformanceAPIAvailable()) {
    return;
  }
  const nav = performance.getEntriesByType('navigation')[0];
  if (nav) {
    return nav.responseEnd - nav.requestStart;
  }
  return;
}