Summary: A new method on Performance that allows translating a timestamp from one timeline to another. The idea is that you can take a performance.now() value or performance mark from some other global and convert them to the timeline of your global. It works like this:

  var myTime = Performance.translateTime(otherTime, otherGlobal);

where otherGlobal is a Window, Worker, SharedWorker, or ServiceWorker.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1169068

Spec: http://w3c.github.io/hr-time/

Target release: 45

State in other UAs: Chrome plans to implement, unclear on the others.

-Boris

P.S. I'm not doing the impl work, just the paperwork.
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to