diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-29 01:03:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-16 11:35:33 +0200 |
| commit | c1b6455f596fd342b2e60ff1ab0cb5a9a05c07e6 (patch) | |
| tree | 90d9963fb99925651902b9e7c3a7bee3f606435d /src/lib | |
| parent | f8a635dfc34d456029030af761503af55d365aea (diff) | |
Add operator* for Time and int.
Diffstat (limited to 'src/lib')
| -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); } |
