webrtc-stats
webrtc-stats copied to clipboard
Need to relate all timestamps to Unix time
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).
Makes sense. would adding to the preamble section suffice?
https://www.w3.org/TR/webrtc-stats/#basic-concepts
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.