diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 12:35:55 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 12:35:55 +0200 |
commit | eeaf0a73acf661662b9baf9929c9688c60d0bf38 (patch) | |
tree | ef7ef4082282eb967220c1493c07084c97cfc7c0 /dom/console | |
parent | 089a0bd9a4dace03e5800878055b86854eee5002 (diff) | |
download | UXP-eeaf0a73acf661662b9baf9929c9688c60d0bf38.tar UXP-eeaf0a73acf661662b9baf9929c9688c60d0bf38.tar.gz UXP-eeaf0a73acf661662b9baf9929c9688c60d0bf38.tar.lz UXP-eeaf0a73acf661662b9baf9929c9688c60d0bf38.tar.xz UXP-eeaf0a73acf661662b9baf9929c9688c60d0bf38.zip |
Bug 1322292 - Some fixes for the Performance API in workers - part 3 - TimeStampToDOMHighRes() in workerPrivate
https://hg.mozilla.org/mozilla-central/rev/b827e4d0dc73
Diffstat (limited to 'dom/console')
-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 1ecf1f7fd..ff5a92167 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()); } } |