mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Round down to the nearest 2ms (instead of 1ms)
Issue #67 https://github.com/MoonchildProductions/UXP/pull/34/commits/c8355b22c047c9737e32f096b816edbb8b0fa181a32b7f7c4ef0b727eac2
This commit is contained in:
parent
4cb956bb3b
commit
2884c049cd
2 changed files with 3 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue