W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2018

Re: [webrtc-pc] RTCRtpContributingSource.timestamp needs a clearer definition

From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
Date: Tue, 09 Jan 2018 17:45:15 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-356359928-1515519914-sysbot+gh@w3.org>
The timeOrigin implementation is Firefox is really simple: take the monotonic clock timestamp at navigation start, subtract a process-global initialization timestamp, add the wall-clock time of said initialization.

The navigationStart implementation is just a snapshot of wall-clock time at navigation start.

So if there is a difference, it's due to skew between the monotonic and wall clocks over the period between process init and navigation start.  I suspect based on the number I'm seeing that in Firefox the monotonic clock doesn't run while the computer is asleep, which can easily introduce significant skew given that content process lifetimes in Firefox are a good bit longer than in Chrome.

GitHub Notification of comment by bzbarsky
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1690#issuecomment-356359928 using your GitHub account
Received on Tuesday, 9 January 2018 17:45:17 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:43 UTC