summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-29 01:03:43 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-19 14:44:01 +0200
commita84ee09e386d57aa80bbfaa67be02a6a96081933 (patch)
treed2f23788ad4e9eecedb33f1b3738a53dc84f6ce5
parent0c6e8db81b36df44f1782dce2e3a5e438a92f925 (diff)
Add operator* for Time and int.
-rw-r--r--src/lib/dcpomatic_time.h4
1 files changed, 4 insertions, 0 deletions
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<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);
}