Skip to content

Commit

Permalink
Add note about DOMHighResTimestamp precision
Browse files Browse the repository at this point in the history
Closes #149
  • Loading branch information
noamr committed Feb 16, 2023
1 parent e7285a2 commit 9f7d9a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ <h3>
is 1000 milliseconds long (i.e., don't account for leap seconds).
</li>
</ol>
<p class="note">
A {{DOMHighResTimeStamp}} is a double. Therefore, using it to represent an
[=epoch-relative timestamp=], e.g. for the purpose of comparing it with <a>Date.now()</a>,
might lose sub-millisecond precision.
</p>
</section>
<section id="sec-domhighrestimestamp">
<h3>
Expand Down

0 comments on commit 9f7d9a8

Please sign in to comment.