built in calculation
This commit is contained in:
parent
7881a090c3
commit
74afcf457d
@ -42,7 +42,7 @@ impl Time{
|
||||
impl From<Planar64> for Time{
|
||||
#[inline]
|
||||
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{
|
||||
|
Loading…
Reference in New Issue
Block a user