W3C home > Mailing lists > Public > public-web-perf@w3.org > January 2015

[User Timing] Clarification of negative duration values

From: Eli Perelman <eperelman@mozilla.com>
Date: Tue, 20 Jan 2015 15:49:23 -0600
Message-ID: <CABvvSwec3yTcZW=LuoqsozPEBmdjTO3+dRh9-u4dBHWAGjEnUg@mail.gmail.com>
To: public-web-perf <public-web-perf@w3.org>
In working on the implementation of the User Timing spec in Gecko, it was
brought up about the potential of durations to return negative values.
Specifically it was unclear from the spec whether things like this should
be allowed:


performance.measure('delta', 'B', 'A');

assert( performance.getEntriesByName('delta')[0].duration < 0 ); // true

Chrome allows this interaction, enabling negative duration values for
measures. Is this intended, and if so, should we clarify the spec that
negative durations are allowed for performance measurements specifically?

Eli Perelman
Received on Tuesday, 20 January 2015 21:49:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:01:27 UTC