summaryrefslogtreecommitdiffstats
path: root/dom/console/Console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/console/Console.cpp')
-rwxr-xr-x[-rw-r--r--]dom/console/Console.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/dom/console/Console.cpp b/dom/console/Console.cpp
index 9ede26501..ff5a92167 100644..100755
--- a/dom/console/Console.cpp
+++ b/dom/console/Console.cpp
@@ -30,6 +30,7 @@
#include "nsContentUtils.h"
#include "nsDocShell.h"
#include "nsProxyRelease.h"
+#include "mozilla/TimerClamping.h"
#include "mozilla/ConsoleTimelineMarker.h"
#include "mozilla/TimestampTimelineMarker.h"
@@ -1335,10 +1336,7 @@ Console::MethodInternal(JSContext* aCx, MethodName aMethodName,
WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate();
MOZ_ASSERT(workerPrivate);
- TimeDuration duration =
- mozilla::TimeStamp::Now() - workerPrivate->NowBaseTimeStamp();
-
- monotonicTimer = duration.ToMilliseconds();
+ monotonicTimer = workerPrivate->TimeStampToDOMHighRes(TimeStamp::Now());
}
}