unsigned long long PerformanceTiming::connectEnd() const { DocumentLoader* loader = documentLoader(); if (!loader) return connectStart(); ResourceLoadTiming* timing = loader->response().resourceLoadTiming(); if (!timing) return connectStart(); // connectEnd will be zero when a network request is not made. Rather than // exposing a special value that indicates no new connection, we "backfill" // with connectStart. double connectEnd = timing->connectEnd(); if (connectEnd == 0.0 || loader->response().connectionReused()) return connectStart(); return monotonicTimeToIntegerMilliseconds(connectEnd); }