diff options
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -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 c687569ec..a09dd93e9 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -113,6 +113,10 @@ public: return *this; } + Time<S, O> operator/ (int o) const { + return Time<S, O> (_t / o); + } + /** Round up to the nearest sampling interval * at some sampling rate. * @param r Sampling rate. |
