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