forked from w3c/compute-pressure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of sample timestamps automation and non-automation c…
…ases With platform collectors now being per-global and per-source type, we need a way to clearly indicate that the "unprocessed" timestamp from a sample (i.e. what is fed to "relative high resolution time") must be the same across all globals. We also need to make sure that this works for both real and virtual pressure sources. - The abstract "pressure source" concept added a few commits ago now has an accompanying "pressure source sample" concept. It is a struct holding implementation-defined telemetry data as well as a timestamp corresponding to when it was obtained. Functionally, this should be identical to the what the spec has as of pull request w3c#280. - Virtual pressure source's "pending samples" is now a struct as well, holding similar data: a PressureState (like before) and a timestamp that is set to the "unshared current time" when the "update virtual pressure source" endpoint is called. - The "data collection" algorithm is responsible for reading either a "pressure source sample" or a virtual pressure source's "pending sample" and processing the timestamp value as necessary.
- Loading branch information
Raphael Kubo da Costa
committed
Jun 12, 2024
1 parent
294ed01
commit 9460e2c
Showing
1 changed file
with
69 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters