diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-29 01:03:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-12 09:40:37 +0200 |
| commit | 1ecdc81645686fcc5a8fb2cb55313d2ca5d1d4a8 (patch) | |
| tree | 7c8d5e70681121962bf8c843a19720b27de92f9a | |
| parent | 83ec46f8f9bb24fed7237f6fef605b97d7a67b08 (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); } |
