mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09: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:
parent
d40e56137b
commit
94ea4f222c
7 changed files with 10 additions and 23 deletions
|
|
@ -120,6 +120,13 @@ Performance::Performance(nsPIDOMWindowInner* aWindow)
|
|||
Performance::~Performance()
|
||||
{}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
Performance::Now() const
|
||||
{
|
||||
TimeDuration duration = TimeStamp::Now() - CreationTimeStamp();
|
||||
return RoundTime(duration.ToMilliseconds());
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
Performance::TimeOrigin()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue