X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fdcp_time.cc;h=7d3111d270fbef814e05a7a398f8eadd9978023e;hb=1c24485f58cdb133477b4e1e201ba0acd93ac74e;hp=c5a7affdd167af48320118dfba50eb5e52384c7d;hpb=4f902db0ad994910a34ca845225635ceefcac96e;p=libdcp.git diff --git a/src/dcp_time.cc b/src/dcp_time.cc index c5a7affd..7d3111d2 100644 --- a/src/dcp_time.cc +++ b/src/dcp_time.cc @@ -64,7 +64,7 @@ Time::Time (string time) vector b; split (b, time, is_any_of (":")); if (b.size() != 4) { - throw DCPReadError ("unrecognised time specification"); + boost::throw_exception (DCPReadError ("unrecognised time specification")); } h = lexical_cast (b[0]); @@ -222,6 +222,7 @@ libdcp::operator/ (Time a, Time const & b) return float (at) / bt; } +/** @return A string of the form h:m:s:t */ string Time::to_string () const { @@ -230,6 +231,7 @@ Time::to_string () const return str.str (); } +/** @return This time in ticks */ int64_t Time::to_ticks () const {