-
I've tried different variations of let timer = UtcTime::new(format_description!(
"[year]-[month]-[day]T[hour repr:24]:[minute]:[second].[subsecond digits:9]Z"));
let timer = UtcTime::rfc_3339();
let timer = UtcTime::new(Iso8601::DEFAULT);
fmt::Layer::default()
.with_timer(timer)
.with_writer(std::io::stdout());
The default formatter only shows 6 digits.
|
Beta Was this translation helpful? Give feedback.
Answered by
twitu
Nov 18, 2023
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
twitu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
https://doc.rust-lang.org/std/time/struct.SystemTime.html#platform-specific-behavior ↩