diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-29 01:03:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-12-16 02:07:37 +0100 |
| commit | d9751ad986905095db13cb147010b61c72b4332e (patch) | |
| tree | 8f3c28f8fa6da61acdf5c4101bbc6f51540d2cc4 /src/lib | |
| parent | 03300322cb2281169ad4ef3c86df94dcc829d3b2 (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 1b12ea901..9ebb334fe 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); } |
