From 276e31ee6793aadf6cde3d021803b78410012ecb Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 23 Sep 2020 13:54:36 +0200 Subject: made step duration, save interval and unloading age configurable arguments --- src/timestamp.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/timestamp.rs') diff --git a/src/timestamp.rs b/src/timestamp.rs index 645fb0d..86dfa2a 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -17,3 +17,10 @@ impl Sub for Timestamp { Self(self.0 - other) } } + +impl Sub for Timestamp { + type Output = i64; + fn sub(self, other: Self) -> i64 { + self.0 - other.0 + } +} -- cgit