KEMBAR78
Is PressureRecord.time a timestamp or a time that is relative to timeOrigin? · Issue #257 · w3c/compute-pressure · GitHub
Skip to content

Is PressureRecord.time a timestamp or a time that is relative to timeOrigin? #257

@Elchi3

Description

@Elchi3

The spec says:

a [[Time]] value of type DOMHighResTimeStamp, which corresponds to the time the data was obtained from the system, relative to the time origin of the global object associated with the 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 so that I could sync times between window and worker contexts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions