summaryrefslogtreecommitdiff
path: root/src/timestamp.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-09-23 13:54:36 +0200
committertroido <troido@protonmail.com>2020-09-23 13:54:36 +0200
commit276e31ee6793aadf6cde3d021803b78410012ecb (patch)
tree069b5274f2a33e4d65b1d3e418fd24a63c12a763 /src/timestamp.rs
parent00a590a42edd7538c61dacbc4224c1adfc1e6414 (diff)
made step duration, save interval and unloading age configurable arguments
Diffstat (limited to 'src/timestamp.rs')
-rw-r--r--src/timestamp.rs7
1 files changed, 7 insertions, 0 deletions
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<i64> for Timestamp {
Self(self.0 - other)
}
}
+
+impl Sub<Self> for Timestamp {
+ type Output = i64;
+ fn sub(self, other: Self) -> i64 {
+ self.0 - other.0
+ }
+}