[webkit-dev] Adding high resolution platform timestamp to DOM events
esprehn at chromium.org
Wed Oct 24 20:44:56 PDT 2012
This doesn't appear to be in any standard yet. You should probably send
something to public-webapps or the whatwg list and make sure others are
onboard for the idea before exposing it to the web.
On Wed, Oct 24, 2012 at 6:17 PM, Robert Flack <flackr at chromium.org> wrote:
> Hi webkit-dev,
> I would like to add platform timestamps to DOM events as the systemTime
> property. I have a patch implementing the feature:
> https://bugs.webkit.org/show_bug.cgi?id=94987. This will let us know the
> time at which the system received an event to be able to accurately handle
> it, whereas the timestamp property gives the time the DOM event was created
> in an inaccurate milliseconds since 1970 form. This has been discussed on
> www-dom (http://lists.w3.org/Archives/Public/www-dom/2012OctDec/0028.html)
> and www-perf (
> and use cases for this have been discussed (
> The platform timestamp comes in as a monotonic timestamp. Since the DOM
> Event spec requires that timeStamp() be a 1970-epoch based timestamp it is
> not sufficient for a high resolution precise time delta on event delivery.
> Instead, we add a systemTime property which uses the Performance API spec (
> for high res timestamps (time since document load timestamp to avoid user
> fingerprinting) and provide the platform's high resolution timestamp to
> Let me know if you have any suggestions. I look forward to everyone's
> feedback, cheers!
> - Rob
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev