diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-29 01:03:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-08 17:17:15 +0100 |
| commit | 8ff378e5bc8b42f0d3fbc308baafe77cd69ff1bf (patch) | |
| tree | c7cd4799802c0d813f5cae58911116ab807f26a9 | |
| parent | cfd3cb29aa6cb7bc09d562b5a599ae688e591620 (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); } |
