diff options
Diffstat (limited to 'dom/console/Console.cpp')
-rwxr-xr-x | dom/console/Console.cpp | 5 |
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()); } } |