mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +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()) {
|
||||
return mZeroTime;
|
||||
}
|
||||
return mSecureConnectionStart.IsNull() ? mZeroTime
|
||||
: TimeStampToDOMHighRes(mSecureConnectionStart);
|
||||
// Rounding to 1ms
|
||||
return mSecureConnectionStart.IsNull()
|
||||
? mZeroTime
|
||||
: floor(TimeStampToDOMHighRes(mSecureConnectionStart) / 1) * 1;
|
||||
}
|
||||
|
||||
DOMTimeMilliSec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue