W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2015

RE: Potential Issue with DONHiResTimeStamp in WebRTC Stats API

From: Harald Alvestrand <harald@alvestrand.no>
Date: Mon, 21 Sep 2015 22:25:52 +0200
To: Bernard Aboba <Bernard.Aboba@microsoft.com>,"public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <1AF5A414-E8D1-4BF1-9A9A-48373B658362@alvestrand.no>
Yes, we should. At the very least, it must be clear.

Den 21. september 2015 20:50:10 CEST, skrev Bernard Aboba <Bernard.Aboba@microsoft.com>:
>Harald said: 
>"The use of DOMHiResTimeStamp is actually troubling, for multiple
>reasons, none of which is actually a technical concern:
>1) The name is wrong. It's DOMHighResTimeStamp.
>2) The definition (which is a typedef for Double) states that "The
>DOMHighResTimeStamp type is used to store a time value measured
>relative to the navigationStart attribute of the PerformanceTiming
>interface [NavigationTiming], the start of navigation of the document,
>or a time value that represents a duration between two
>It also says that "The time values returned when calling the now method
>MUST be monotonically increasing and not subject to system clock
>adjustments or system clock skew. The difference between any two
>chronologically recorded time values returned from the now method MUST
>never be negative." Not normative for our usage, but might surprise
>Both of these are troublesome given that they don't seem to admit of an
>implementation that uses the system clock's idea of time relative to
>Jan 1, 1970.
>We can do it, but it's a novel usage of the type."
>[BA] Looking at the WebRTC 1.0 specification, DOMHiResTimeStamp is used
>in the Stats API.  For example:  
>dictionary RTCStats {
>             DOMHiResTimeStamp timestamp;
>             RTCStatsType      type;
>             DOMString         id;
>Should we file an Issue on this? 

Sent from my Android device with K-9 Mail. Please excuse my brevity.
Received on Monday, 21 September 2015 20:26:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:46 UTC