diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-22 00:11:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-22 00:11:18 +0100 |
| commit | 9b84debc374f426bb3a00baa82bae5fdd88a018e (patch) | |
| tree | 71cc6972a48f469cd83dc0b0ee60953645390fd4 /src/dcp_time.h | |
| parent | df6ed597b720399f02e7b75a7cf448d0956c89a1 (diff) | |
Some maths operations with Time.
Diffstat (limited to 'src/dcp_time.h')
| -rw-r--r-- | src/dcp_time.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |
