From 8ff378e5bc8b42f0d3fbc308baafe77cd69ff1bf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 29 Sep 2022 01:03:43 +0200 Subject: Add operator* for Time and int. --- src/lib/dcpomatic_time.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib') diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index 9e7191b1e..583ff3a46 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -152,6 +152,10 @@ public: return *this; } + Time operator* (int o) const { + return Time (_t * o); + } + Time operator/ (int o) const { return Time (_t / o); } -- cgit v1.2.3