[compute-pressure] Is PressureRecord.time a timestamp or a time that is relative to timeOrigin? (#257)

Elchi3 has just created a new issue for https://github.com/w3c/compute-pressure:

== Is PressureRecord.time a timestamp or a time that is relative to timeOrigin? ==
The spec says:

> a [[Time]] value of type [DOMHighResTimeStamp](https://www.w3.org/TR/hr-time-3/#dom-domhighrestimestamp), which corresponds to the time the data was obtained from the system, relative to the [time origin](https://html.spec.whatwg.org/multipage/webappapis.html#concept-settings-object-time-origin) of the global object associated with the [PressureObserver](https://w3c.github.io/compute-pressure/#dom-pressureobserver) instance that generated the notification.

In Chrome Canary I'm getting timestamps, though. (e.g., 1712050826399.263, so maybe it is a Chrome bug?). I was expecting a smaller number similar to when I call performance.now().

Follow up question: If I should be seeing relative time stamps, do they respect [performance.timeOrigin](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin#synchronizing_time_between_contexts) so that I could sync times between window and worker contexts? 

Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/257 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 April 2024 09:51:28 UTC