From b3f682915a310b455bbde55260d60cab17382fc3 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Wed, 12 Jun 2024 16:57:20 +0200 Subject: [PATCH] data delivery: Set `timestamp` as an "unsafe shared current time" Follow-up to #274, related to #257. The wording used in #274, which mentions platform-specific timestamps, made more sense in the context of the Generic Sensor API spec, as multiple platform-specific sensor APIs provide samples with timestamps in a platform-specific format that needs to be converted. Of the OS-provided telemetry APIs, however, only Windows optionally provides samples with a timestamp. As such, it makes more sense to define a timestamp using the monotonic clock's unsafe current time instead. Aditionally, the accompanying note was rewritten to indicate that the same value should be used for all globals, otherwise the same sample would end up with different "raw" timestamps in different frames/workers. --- index.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index fb45665..71c36af 100644 --- a/index.html +++ b/index.html @@ -1137,13 +1137,14 @@

Data delivery

  • - Let |timestamp| be a platform-specific timestamp converted in an [=implementation-defined=] - way to an [=monotonic clock/unsafe current time=] using the same [=monotonic clock=] - that is shared by [=environment settings object/time origins=]. + Let |timestamp| be [=unsafe shared current time=] corresponding to + the moment when |data| was obtained from |relevantGlobal|'s + [=platform collector=].