diff --git a/src/integer.rs b/src/integer.rs index 4098e99..efbd048 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -118,11 +118,17 @@ impl std::ops::Mul for Time{ impl std::ops::Div for Time{ type Output=Time; #[inline] - fn div(self,rhs:i64)->Self::Output { + fn div(self,rhs:i64)->Self::Output{ Time(self.0/rhs) } } - +impl std::ops::Mul for Time{ + type Output=Time; + #[inline] + fn mul(self,rhs:i64)->Self::Output{ + Time(self.0*rhs) + } +} impl core::ops::Mul