Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I just ran some Rust benchmarks and I see that the results are always displayed in ns. Is is possible to change the time units of the benchmark to something else? For example, to ms?
ns
ms
No, it is not possible.
Unless you want to write a wrapper script that runs a regex and replaces the numbers after dividing them, but I doubt that’s what you meant.
There are 10^9 nanoseconds in a second.
Add a comment