Bug 1322292 - Some fixes for the Performance API in workers - part 1 - Centralized Performance.now()

https://hg.mozilla.org/mozilla-central/rev/291a68ca4825
This commit is contained in:
janekptacijarabaci 2018-04-29 12:26:49 +02:00 committed by Roy Tam
commit 94ea4f222c
7 changed files with 10 additions and 23 deletions

View file

@ -23,14 +23,6 @@ PerformanceWorker::~PerformanceWorker()
mWorkerPrivate->AssertIsOnWorkerThread();
}
DOMHighResTimeStamp
PerformanceWorker::Now() const
{
TimeDuration duration =
TimeStamp::Now() - mWorkerPrivate->NowBaseTimeStamp();
return RoundTime(duration.ToMilliseconds());
}
void
PerformanceWorker::InsertUserEntry(PerformanceEntry* aEntry)
{