Skip to content

Commit

Permalink
Add note about DOMHighResTimestamp precision (#150)
Browse files Browse the repository at this point in the history
Closes #149
  • Loading branch information
noamr authored Feb 16, 2023
1 parent 9d8bdda commit 679a556
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 @@ -665,6 +665,11 @@ <h3>
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 679a556

Please sign in to comment.