diff options
| author | troido <troido@protonmail.com> | 2020-09-23 13:54:36 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-23 13:54:36 +0200 |
| commit | 276e31ee6793aadf6cde3d021803b78410012ecb (patch) | |
| tree | 069b5274f2a33e4d65b1d3e418fd24a63c12a763 /src/timestamp.rs | |
| parent | 00a590a42edd7538c61dacbc4224c1adfc1e6414 (diff) | |
made step duration, save interval and unloading age configurable arguments
Diffstat (limited to 'src/timestamp.rs')
| -rw-r--r-- | src/timestamp.rs | 7 |
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 + } +} |
