From 9b84debc374f426bb3a00baa82bae5fdd88a018e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 22 Aug 2012 00:11:18 +0100 Subject: Some maths operations with Time. --- src/dcp_time.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dcp_time.h') diff --git a/src/dcp_time.h b/src/dcp_time.h index 626cdaca..0bbf5510 100644 --- a/src/dcp_time.h +++ b/src/dcp_time.h @@ -47,6 +47,8 @@ public: , t (t_) {} + Time (std::string time); + int h; ///< hours int m; ///< minutes int s; ///< seconds @@ -55,7 +57,12 @@ public: extern bool operator== (Time const & a, Time const & b); extern bool operator<= (Time const & a, Time const & b); +extern bool operator< (Time const & a, Time const & b); +extern bool operator> (Time const & a, Time const & b); extern std::ostream & operator<< (std::ostream & s, Time const & t); +extern Time operator+ (Time a, Time const & b); +extern Time operator- (Time a, Time const & b); +extern float operator/ (Time a, Time const & b); } -- cgit v1.2.3