diff --git a/src/integer.rs b/src/integer.rs index 59316b8..6a58c50 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -38,7 +38,7 @@ impl From for Time{ impl std::fmt::Display for Time{ #[inline] fn fmt(&self,f:&mut std::fmt::Formatter<'_>)->std::fmt::Result{ - write!(f,"{}s+{}ns",self.0/Self::ONE_SECOND.0,self.0%Self::ONE_SECOND.0) + write!(f,"{}s+{:09}ns",self.0/Self::ONE_SECOND.0,self.0%Self::ONE_SECOND.0) } } impl std::ops::Neg for Time{