summaryrefslogtreecommitdiff
path: root/src/sub_time.h
diff options
context:
space:
mode:
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);