Ok. Not 100% on the language, but an attempt... partial interface Performance { DOMHighResTimeStamp translateTime(DOMHighResTimeStamp time, (Window or Worker) timeSource); };
The `translateTime` method MUST return a DOMHighResTimeStamp that is the result of adding the provided `time`, and the difference of `now` method called in the global of the performance object that is the `this` value for the function call and the `now` method called in the provided `timeSource`. (Something tells me this can be simplified.. :)) On Wed, Jun 17, 2015 at 10:26 AM, Boris Zbarsky <bzbar...@mit.edu> wrote: > On 6/17/15 12:57 PM, Ilya Grigorik wrote: > >> partial interface Performance { >> DOMHighResTimeStamp translate(DOMHighResTimeStamp time, (Window or >> Worker) timeSource); >> }; >> > > Make it translateTime, and sounds good. > > -Boris >