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 | 2294adc5a6431220fc91e703c5854b830d6240e5 (patch) | |
tree | 2fb74c5fea1aa819c856e45ecbf8ca511f4e25d9 /dom/performance | |
parent | 8094892305eb2269fe02fb128e44040ee7ea4107 (diff) | |
download | uxp-2294adc5a6431220fc91e703c5854b830d6240e5.tar.gz |
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 4428f81c2b..32ddea823a 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 |