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

Yes!

performance.timeOrigin + computePressureRecord.time = epochtimestamp

And for synchronization between window and worker, the timeOrigin property helps you to translate as well. See this example: https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin#synchronizing_time_between_contexts

-- 
GitHub Notification of comment by Elchi3
Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/257#issuecomment-2033879649 using your GitHub account


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

Received on Wednesday, 3 April 2024 08:18:35 UTC