mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Bug 1322292 - Some fixes for the Performance API in workers - part 3 - TimeStampToDOMHighRes() in workerPrivate
https://hg.mozilla.org/mozilla-central/rev/b827e4d0dc73
This commit is contained in:
parent
c1d7159d0f
commit
e537f5888d
3 changed files with 9 additions and 9 deletions
|
|
@ -577,6 +577,13 @@ public:
|
|||
return mCreationTimeHighRes;
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp TimeStampToDOMHighRes(const TimeStamp& aTimeStamp) const
|
||||
{
|
||||
MOZ_ASSERT(!aTimeStamp.IsNull());
|
||||
TimeDuration duration = aTimeStamp - mCreationTimeStamp;
|
||||
return duration.ToMilliseconds();
|
||||
}
|
||||
|
||||
nsIPrincipal*
|
||||
GetPrincipal() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue