mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 10:07:30 +09:00
Rounding to 1ms
This commit is contained in:
parent
db0b581760
commit
628f53967c
1 changed files with 4 additions and 2 deletions
|
|
@ -307,8 +307,10 @@ PerformanceTiming::SecureConnectionStartHighRes()
|
||||||
if (!nsContentUtils::IsPerformanceTimingEnabled() || !IsInitialized()) {
|
if (!nsContentUtils::IsPerformanceTimingEnabled() || !IsInitialized()) {
|
||||||
return mZeroTime;
|
return mZeroTime;
|
||||||
}
|
}
|
||||||
return mSecureConnectionStart.IsNull() ? mZeroTime
|
// Rounding to 1ms
|
||||||
: TimeStampToDOMHighRes(mSecureConnectionStart);
|
return mSecureConnectionStart.IsNull()
|
||||||
|
? mZeroTime
|
||||||
|
: floor(TimeStampToDOMHighRes(mSecureConnectionStart) / 1) * 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
DOMTimeMilliSec
|
DOMTimeMilliSec
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue