webrtc-stats icon indicating copy to clipboard operation
webrtc-stats copied to clipboard

Need to relate all timestamps to Unix time

Open alvestrand opened this issue 4 years ago • 2 comments

In the webrtc-pc spec, it is clear that the timestamp on a stats record is based on Unix time (https://w3c.github.io/webrtc-pc/#dom-rtcstats-timestamp). It is also mentioned elsewhere (in CSRC) that the value is performance.now() + performance.timeOrigin.

We have however not said explicitly that this basis is used for all timestamps in stats. We should say that (once).

alvestrand avatar Mar 22 '21 18:03 alvestrand

Makes sense. would adding to the preamble section suffice?

vr000m avatar Apr 27 '21 12:04 vr000m

https://www.w3.org/TR/webrtc-stats/#basic-concepts

vr000m avatar Apr 27 '21 13:04 vr000m

Given the text in "Basic concepts":

Timestamps are expressed with DOMHighResTimeStamp [HIGHRES-TIME], and are defined as Performance.timeOrigin + Performance.now() at the time the information is collected.

I think this can be closed.

alvestrand avatar Oct 04 '22 12:10 alvestrand