summaryrefslogtreecommitdiff
path: root/src/sub_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-06 08:59:53 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-06 08:59:53 +0100
commitaba52dd5cc2fa9736fd9b007962923d4dae8c4a6 (patch)
treeaa206963eaf22e3be47d9a10f83553cfb57879fc /src/sub_time.h
parenta06e701131b813bc42ae81b9c5e8c7dbbfea7eb9 (diff)
Hacks.libssa
Diffstat (limited to 'src/sub_time.h')
-rw-r--r--src/sub_time.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sub_time.h b/src/sub_time.h
index 93088cb..f5d15d7 100644
--- a/src/sub_time.h
+++ b/src/sub_time.h
@@ -42,13 +42,16 @@ public:
double all_as_seconds () const;
- void add (Time t);
void scale (float f);
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);
+ static Time from_milliseconds (int64_t ms);
static Time from_frames (int frames, Rational rate);
+ Time operator+ (Time const & other);
+ Time& operator+= (Time const & other);
+
private:
friend bool operator< (Time const & a, Time const & b);
friend bool operator> (Time const & a, Time const & b);