w3c / server-timing

Server Timing
http://w3c.github.io/server-timing/
Other
75 stars 20 forks source link

Make it clearer what the units for `duration` are #86

Closed npm1 closed 1 year ago

npm1 commented 3 years ago

It is referenced as double that contains the server-specified metric duration, but that does not tell me if it is in seconds or milliseconds.

npm1 commented 3 years ago

The hint here is that https://w3c.github.io/server-timing/#the-performanceservertiming-interface uses DOMHighResTimestamp hence it seems to be in milliseconds, but it would be great to have the attribute units explained somewhere. It seems this is passed by the developer, so maybe this varies depending on what the developer decides to do...