diff --git a/lib/common/src/integer.rs b/lib/common/src/integer.rs index 018b1f0..70bb9e3 100644 --- a/lib/common/src/integer.rs +++ b/lib/common/src/integer.rs @@ -63,6 +63,12 @@ impl<T> From<Planar64> for Time<T>{ Self::raw((value*Planar64::raw(1_000_000_000)).fix_1().to_raw()) } } +impl<T> From<Time<T>> for Ratio<Planar64,Planar64>{ + #[inline] + fn from(value:Time<T>)->Self{ + value.to_ratio() + } +} impl<T,Num,Den,N1,T1> From<Ratio<Num,Den>> for Time<T> where Num:core::ops::Mul<Planar64,Output=N1>,