(2014/05/08 0:49), Glenn Maynard wrote:
Can you remind me why this shouldn't just use real time, eg. using the Unix
epoch as the time base?  It was some privacy concern, but I can't think of
any privacy argument for giving high-resolution event timestamps in units
that are this limited and awkward.

[1] has some justification for why we don't use 1970. As does [2].
I'm not sure what the privacy concerns raised in the past were with regards to 1970.

If you treat Date.now() as your global clock, you can roughly convert between different performance timelines but with the caveat that you lose precision and are vulnerable to system clock adjustments. (There is actually a method defined for converting between timelines in Web Animations but the plan is to remove it.)

Best regards,


[1] https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html#introduction
[2] http://lists.w3.org/Archives/Public/www-dom/2012OctDec/0031.html
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=579652#c2

Reply via email to