Skip to content

How to show 9 digits of precision when formatting subseconds for a custom timer implementation? #2683

Closed Answered by twitu
twitu asked this question in Q&A
Discussion options

You must be logged in to vote

According to the SystemTime page 1 the clock resolution is platform dependent and on Mac M2 it does not have nanosecond resolution. Since most clocks in tracing subscriber internally use SystemTime calls this is not possible.

Footnotes

  1. https://doc.rust-lang.org/std/time/struct.SystemTime.html#platform-specific-behavior

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by twitu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant