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-04 23:20:11 +0200
commit32294829b99fcbfa67e2b6b13b7a60d7244ff0ac (patch)
tree1b0bf8e5e01964a1a27945fd8570d08878309331
parent03467c4b8dce3ddd11ec40dce1ea1c25b9204e01 (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);
}