mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-26 18:49:44 -05:00
Round down to the nearest 2ms (instead of 1ms)
Issue mcp-graveyard/UXP#67 https://github.com/MoonchildProductions/UXP/pull/34/commits/c8355b22c047c9737e32f096b816edbb8b0fa181 https://github.com/MoonchildProductions/UXP/commit/a32b7f7c4e4e31669e0787e6321d74e4db71e514 https://github.com/MoonchildProductions/UXP/commit/f0b727eac28244e0fa24a6107dee44e83ad0f561
This commit is contained in:
1 parent
4ab764f1d4
commit
451e71c40e
2 files changed
+3
-6
No files matched your search
@@ -307,12 +307,8 @@ PerformanceTiming::SecureConnectionStartHighRes()
|
||||
if (!nsContentUtils::IsPerformanceTimingEnabled() || !IsInitialized()) {
|
||||
return mZeroTime;
|
||||
}
|
||||
|
||||
// Round down to the nearest 1ms
|
||||
const double maxResolutionMs = 1;
|
||||
return mSecureConnectionStart.IsNull()
|
||||
? mZeroTime
|
||||
: floor(TimeStampToDOMHighRes(mSecureConnectionStart) / maxResolutionMs) * maxResolutionMs;
|
||||
return mSecureConnectionStart.IsNull() ? mZeroTime
|
||||
: TimerClamping::ReduceMsTimeValue(TimeStampToDOMHighRes(mSecureConnectionStart));
|
||||
}
|
||||
|
||||
DOMTimeMilliSec
|
||||
|
||||
@@ -17,6 +17,7 @@ const PERFORMANCE_TIMINGS = [
|
||||
"domainLookupEnd",
|
||||
"connectStart",
|
||||
"connectEnd",
|
||||
"secureConnectionStart",
|
||||
"requestStart",
|
||||
"responseStart",
|
||||
"responseEnd",
|
||||
|
||||
Reference in new issue
Block a user