From a320a9a29f9c3320c09ba150633128e5c8729eec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 20 Jan 2015 11:14:49 +0000 Subject: Add Time::all_as_seconds. --- src/sub_time.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/sub_time.cc b/src/sub_time.cc index 3f4d1e9..ed61cb4 100644 --- a/src/sub_time.cc +++ b/src/sub_time.cc @@ -156,9 +156,5 @@ Time::from_hms (int h, int m, int s, int ms) double Time::all_as_seconds () const { - if (!_rate) { - throw UnknownFrameRateError (); - } - - return _seconds + double (_frames) / _rate.get().fraction (); + return seconds() + double(milliseconds ()) / 1000; } -- cgit v1.2.3