diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-29 01:03:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-09-14 22:27:41 +0200 |
| commit | 856fd1dd53b6f4cdb1215847ad44b2a211a5b96f (patch) | |
| tree | 61b72ae4c6a486427f435c3192c94f2c706831ef | |
| parent | 6dd54e28c36ada5d481ea469508629726dc652a9 (diff) | |
Add operator* for Time and int.
| -rw-r--r-- | src/lib/dcpomatic_time.h | 4 |
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); } |
