summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-29 01:03:43 +0200
committerCarl Hetherington <cth@carlh.net>2023-09-14 22:27:41 +0200
commit856fd1dd53b6f4cdb1215847ad44b2a211a5b96f (patch)
tree61b72ae4c6a486427f435c3192c94f2c706831ef
parent6dd54e28c36ada5d481ea469508629726dc652a9 (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);
}