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

I guess the main thing I want to understand (for the documentation) is:

What is `PressureRecord.time` relative to? 
  1) Is it relative to the Unix Epoch (January 1, 1970, UTC)? Chrome returns "1712064622387.064" so that seems like a Unix Epoch relative timestamp to me.
  2) Or is it meant to be relative to [performance.timeOrigin](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin), i.e the time when navigation has started (window context) or the time when the worker is run (worker context). 


If the answer is 1), then I think the spec text is confusing as it talks about being "relative to the time origin" 
If the answer is 2), then I wonder why Chrome returns such a large number that looks like a Unix Epoch relative timestamp.

 

-- 
GitHub Notification of comment by Elchi3
Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/257#issuecomment-2032088040 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 13:45:24 UTC