summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-15 01:30:47 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-15 01:30:47 +0100
commitf80f5f533ab09f64a022314380b2969b6ef88ec3 (patch)
tree922515c5bf4327d9e98f922fc733763a4830d9ea /src
parentca840a47a2db825f5e4e11419a9014c7df93624a (diff)
Add operator-= to Time.
Diffstat (limited to 'src')
-rw-r--r--src/dcp_time.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dcp_time.h b/src/dcp_time.h
index 997b8d13..dcbadf31 100644
--- a/src/dcp_time.h
+++ b/src/dcp_time.h
@@ -142,6 +142,11 @@ public:
return *this;
}
+ Time& operator-= (Time const & o) {
+ *this = *this - o;
+ return *this;
+ }
+
private:
void set (double seconds, int tcr);
};