New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duration as float? #4
Comments
I cherrypicked your changes and they're beautiful! Now I get to see microseconds in the Chrome devtools as opposed to a fixed 0 value for anything less than 1ms. |
This makes a ton of sense, please make your PR. :) And thank you! It might make sense to limit to the # of decimal places to something like 2 or 3 though (chrome for example only shows 2). |
I'm inclined to keep the full precision as I'm also logging the header line on the server side for later review. |
Fixed via #7 |
Hi, looking at the W3C doc I'm hoping that duration can be a float?
I've got a mod for that at-- https://github.com/reedwade/go-server-timing/tree/float-duration
which causes the example to emit a header that looks like:
This seems a lot more useful for a lot of server side things that happen quite fast (ideally).
The text was updated successfully, but these errors were encountered: