We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Uptime
1 parent 961c6f7 commit 05b7fc8Copy full SHA for 05b7fc8
src/time.rs
@@ -81,7 +81,7 @@ impl From<std::time::Instant> for Uptime {
81
impl FormatTime for Uptime {
82
fn format_time(&self, w: &mut impl std::fmt::Write) -> std::fmt::Result {
83
let e = self.epoch.elapsed();
84
- write!(w, "{:4}.{:09}s", e.as_secs(), e.subsec_nanos())
+ write!(w, "{:4}.{:06}s", e.as_secs(), e.subsec_micros())
85
}
86
87
0 commit comments