From dbfbdcba0f5f08a932ba199039f2ca1530e482ac Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 16 Sep 2015 15:38:53 +0100 Subject: Basics of reel split. --- src/lib/dcpomatic_time.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/dcpomatic_time.h') 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 operator+ (T const & o) const { return TimePeriod (from + o, to + o); } -- cgit v1.2.3