1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

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
parent d40e56137b
commit 94ea4f222c
7 changed files with 10 additions and 23 deletions
@@ -105,12 +105,6 @@ PerformanceMainThread::Navigation()
return mNavigation;
}
DOMHighResTimeStamp
PerformanceMainThread::Now() const
{
return RoundTime(GetDOMTiming()->TimeStampToDOMHighRes(TimeStamp::Now()));
}
/**
* An entry should be added only after the resource is loaded.
* This method is not thread safe and can only be called on the main thread.