Add operator* for Time and int.
[dcpomatic.git] / src / lib / dcpomatic_time.h
index 9e7191b1eb7dc239a890aebc2d6efa5fe81d3f75..583ff3a463c5961225071540870f0a6d60769eaf 100644 (file)
@@ -152,6 +152,10 @@ public:
                return *this;
        }
 
+       Time<S, O> operator* (int o) const {
+               return Time<S, O> (_t * o);
+       }
+
        Time<S, O> operator/ (int o) const {
                return Time<S, O> (_t / o);
        }