Skip to content
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

Include Nanoseconds #29

Open
tech10 opened this issue May 1, 2021 · 1 comment
Open

Include Nanoseconds #29

tech10 opened this issue May 1, 2021 · 1 comment

Comments

@tech10
Copy link
Contributor

tech10 commented May 1, 2021

It would be nice to have nanosecond precision in a human readable duration format.

Given the following code, there are still 784 nanoseconds that could be displayed in an output format. Since output units can be limited to a specific one, I see little reason not to include such a feature, there are already Milliseconds and Microseconds, why not nanoseconds, also?

@ThinkChaos
Copy link

ThinkChaos commented Mar 11, 2023

Ran into this with tests that were basically doing durafmt.Parse(time.Nanosecond).String().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants