diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-29 01:03:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-04 00:22:09 +0100 |
| commit | ce0386824de32fbeeb0d3538097d255676e3a938 (patch) | |
| tree | 3afe8c0658a29f6e3f9e21a3d84f9a6fc72a5a90 /src | |
| parent | 50f6c7e95a0d212f6b6f0252f971c4488e333f30 (diff) | |
Add operator* for Time and int.
Diffstat (limited to 'src')
| -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); } |
