summaryrefslogtreecommitdiff
path: root/dom/performance
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 21:17:42 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 21:17:42 +0100
commit2294adc5a6431220fc91e703c5854b830d6240e5 (patch)
tree2fb74c5fea1aa819c856e45ecbf8ca511f4e25d9 /dom/performance
parent8094892305eb2269fe02fb128e44040ee7ea4107 (diff)
downloaduxp-2294adc5a6431220fc91e703c5854b830d6240e5.tar.gz
Rounding to 1ms
Diffstat (limited to 'dom/performance')
-rw-r--r--dom/performance/PerformanceTiming.cpp6
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