fix Time nanoseconds display

This commit is contained in:
Quaternions 2023-10-14 00:21:53 -07:00
parent cf202f52f0
commit 7b09b3333b

View File

@ -38,7 +38,7 @@ impl From<Planar64> 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{