summaryrefslogtreecommitdiff
path: root/src/sub_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-17 01:30:10 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-17 01:30:10 +0000
commit149068981b0cc710eed0e550d9706374c4e5d99b (patch)
treea501629c7e34dc7db53a34fd7f05e3c71e029235 /src/sub_time.h
parent541cb3e8fd563d03eb50c68e688fe55c19bca0ca (diff)
Add Time::all_as_seconds().
Diffstat (limited to 'src/sub_time.h')
-rw-r--r--src/sub_time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sub_time.h b/src/sub_time.h
index 7e1d193..22178e9 100644
--- a/src/sub_time.h
+++ b/src/sub_time.h
@@ -55,6 +55,8 @@ public:
int frames_at (Rational rate) const;
int milliseconds () const;
+ double all_as_seconds () const;
+
static Time from_hmsf (int h, int m, int s, int f, boost::optional<Rational> rate = boost::optional<Rational> ());
static Time from_hms (int h, int m, int s, int ms);