From 43e1f8a1734270b069028d0eeb88a4e23f811739 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 18 Sep 2024 11:33:08 -0700 Subject: [PATCH] add Time*i64 --- src/integer.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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