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 01:10:48 +0200
commit95469c2bb15f490f7d3fbeaed9903bd0cbc13677 (patch)
treef456d8a9521cd6c773600315ae0ee34e7313dcb5
parent06c256d6ae1a6accd669f660504e1e1e4e8f3ecb (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);
}