Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose "relative high resolution coarse time" #114

Merged
merged 2 commits into from
Mar 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,19 @@ <h3>Time Origin</h3>
<div data-algorithm="relative high resolution time">
The <dfn data-export="">relative high resolution time</dfn> given a
{{DOMHighResTimeStamp}} |time| and a [=Realm/global object=] |global|,
runs the following steps:
<ol>
is the result of the following steps:
<ol>
<li>Let |coarse time| be the result of calling [=coarsen time=] with |time| and
|global|'s [=relevant settings object=]'s
[=environment settings object/cross-origin isolated capability=].</li>
<li>Let |diff| be the difference between |coarse time| and the result of
calling [=get time origin timestamp=] with |global|.</li>
<li>Return |diff|.</li>
</ol>
<li>Return the [=relative high resolution coarse time=] for |coarse time| and
|global|.</li>
</ol>

The <dfn data-export="">relative high resolution coarse time</dfn> given a
{{DOMHighResTimeStamp}} |coarseTime| and a [=Realm/global object=] |global|,
is the difference between |coarseTime| and the result of
calling [=get time origin timestamp=] with |global|.
</div>
</p>
<p>The <dfn data-export="">current high resolution time</dfn> given a
Expand Down