diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-16 15:38:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-12 11:05:26 +0100 |
| commit | dbfbdcba0f5f08a932ba199039f2ca1530e482ac (patch) | |
| tree | 94b52a2b51229a2030280db9d259cb52897658ab /src/lib/dcpomatic_time.h | |
| parent | 9610f4035114f499d098e8fd2d726d55ddd943ee (diff) | |
Basics of reel split.
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 4fa6db0a4..beea8c898 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -242,6 +242,10 @@ public: T from; T to; + T duration () const { + return to - from; + } + TimePeriod<T> operator+ (T const & o) const { return TimePeriod<T> (from + o, to + o); } |
