Skip to content

Commit

Permalink
timestamp: Redefine timestamp in Data delivery
Browse files Browse the repository at this point in the history
Fixes w3c#257
  • Loading branch information
arskama committed May 30, 2024
1 parent bfe7f14 commit 99912ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1109,8 +1109,9 @@ <h3>Data delivery</h3>
Let |state:PressureState| be an [=adjusted pressure state=] given |data| and |source|.
</li>
<li>
Let |timestamp:DOMHighResTimeStamp| be a timestamp representing the time the |data| was
obtained from the |relevantGlobal|'s [=platform collector=].
Let |timestamp| be an 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 origin=].
<aside class="note">
The |data| sample and mapping between |data| sample, and [=pressure states=],
is [=implementation-defined=] and may use many different metrics. For instance,
Expand Down Expand Up @@ -1138,7 +1139,8 @@ <h3>Data delivery</h3>
Let |record:PressureRecord| be a new {{PressureRecord}} object with its
{{PressureRecord/[[Source]]}} set to |source|,
{{PressureRecord/[[State]]}} set to |state|
and {{PressureRecord/[[Time]]}} set to |timestamp|.
and {{PressureRecord/[[Time]]}} set to [=relative high resolution time=] based on |timestamp|
and a global.
</li>
<li>
If |observer|.{{PressureObserver/[[AfterPenaltyRecordMap]]}}[source] [=map/exists=]:
Expand Down

0 comments on commit 99912ab

Please sign in to comment.