Skip to content

Commit

Permalink
Define 'relative high resolution time'
Browse files Browse the repository at this point in the history
Fixes w3c#87
  • Loading branch information
igneel64 committed Sep 15, 2020
1 parent c2cb506 commit d9ece76
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,21 @@ <h3>Time Origin</h3>
recorded with respect to a global monotonic clock that is not subject to
system and user clock adjustments, clock skew, and so on—see <a href=
"#sec-monotonic-clock"></a>.</p>
<p>The <dfn data-export="">current high resolution time</dfn> is the high
resolution time from the <a>time origin</a> to the present time (typically
called "now").</p>
<p>
<div algorithm="relative high resolution time">
The <dfn data-export="">relative high resolution time</dfn> given |time|,
a {{DOMHighResTimeStamp}}, and |global|, a [=Realm/global object=],
runs the following steps:
<ul>
<li>Let |diff| be the difference between |time| and the |global|'s <a>time origin</a>.</li>
<li>Return |diff|.</li>
</ul>
</div>
</p>
<p>The <dfn data-export="">current high resolution time</dfn> returns the
result of <a>relative high resolution time</a> where <i>time</i> is the
present time and <i>global</i> is the <a data-cite="DOM#context-object">
context object</a>'s relevant [=Realm/global object=].</p>
</section>
<section id="sec-domhighrestimestamp">
<h3>The <dfn data-export="">DOMHighResTimeStamp</dfn> typedef</h3>
Expand Down

0 comments on commit d9ece76

Please sign in to comment.