summaryrefslogtreecommitdiff
path: root/dom/console/Console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/console/Console.cpp')
-rwxr-xr-xdom/console/Console.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/dom/console/Console.cpp b/dom/console/Console.cpp
index 1ecf1f7fdb..ff5a921673 100755
--- a/dom/console/Console.cpp
+++ b/dom/console/Console.cpp
@@ -1336,10 +1336,7 @@ Console::MethodInternal(JSContext* aCx, MethodName aMethodName,
WorkerPrivate* workerPrivate = GetCurrentThreadWorkerPrivate();
MOZ_ASSERT(workerPrivate);
- TimeDuration duration =
- mozilla::TimeStamp::Now() - workerPrivate->CreationTimeStamp();
-
- monotonicTimer = TimerClamping::ReduceMsTimeValue(duration.ToMilliseconds());
+ monotonicTimer = workerPrivate->TimeStampToDOMHighRes(TimeStamp::Now());
}
}