From 9f7d9a8b6be4d56c9bb89ce1a3804c229e96ed83 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Thu, 16 Feb 2023 12:43:56 +0200 Subject: [PATCH] Add note about DOMHighResTimestamp precision Closes #149 --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index 4831274..f18f390 100644 --- a/index.html +++ b/index.html @@ -349,6 +349,11 @@

is 1000 milliseconds long (i.e., don't account for leap seconds). +

+ A {{DOMHighResTimeStamp}} is a double. Therefore, using it to represent an + [=epoch-relative timestamp=], e.g. for the purpose of comparing it with Date.now(), + might lose sub-millisecond precision. +