diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 21:17:42 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 21:17:42 +0100 |
commit | d7d79119ec267ad8bed18b28f9ba0f96f3b6cc16 (patch) | |
tree | 2fb74c5fea1aa819c856e45ecbf8ca511f4e25d9 /dom/performance | |
parent | 3777f62a0090bee3b39f20b090b3f1fa8f66b4f7 (diff) | |
download | UXP-d7d79119ec267ad8bed18b28f9ba0f96f3b6cc16.tar UXP-d7d79119ec267ad8bed18b28f9ba0f96f3b6cc16.tar.gz UXP-d7d79119ec267ad8bed18b28f9ba0f96f3b6cc16.tar.lz UXP-d7d79119ec267ad8bed18b28f9ba0f96f3b6cc16.tar.xz UXP-d7d79119ec267ad8bed18b28f9ba0f96f3b6cc16.zip |
Rounding to 1ms
Diffstat (limited to 'dom/performance')
-rw-r--r-- | dom/performance/PerformanceTiming.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dom/performance/PerformanceTiming.cpp b/dom/performance/PerformanceTiming.cpp index 4428f81c2..32ddea823 100644 --- a/dom/performance/PerformanceTiming.cpp +++ b/dom/performance/PerformanceTiming.cpp @@ -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 |