built in calculation

This commit is contained in:
Quaternions 2024-08-30 22:11:42 -07:00
parent 7881a090c3
commit 74afcf457d

View File

@ -42,7 +42,7 @@ impl Time{
impl From<Planar64> for Time{ impl From<Planar64> for Time{
#[inline] #[inline]
fn from(value:Planar64)->Self{ fn from(value:Planar64)->Self{
Time((((value.0 as i128)*1_000_000_000)>>32) as i64) Time(value.wide_mul(Planar64::raw(1_000_000_000)) as i64)
} }
} }
impl std::fmt::Display for Time{ impl std::fmt::Display for Time{