Add operator-= to Time.
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Mar 2021 00:30:47 +0000 (01:30 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Mar 2021 00:30:47 +0000 (01:30 +0100)
src/dcp_time.h

index 997b8d13f019c78c0242b0bb42c6a6168c49044c..dcbadf31294137036654a9c06478a3494bb3da09 100644 (file)
@@ -142,6 +142,11 @@ public:
                return *this;
        }
 
+       Time& operator-= (Time const & o) {
+               *this = *this - o;
+               return *this;
+       }
+
 private:
        void set (double seconds, int tcr);
 };