/*
* Operators.
*/
+
+ /// Unary minus
+ GenTime operator -() {
+ return GenTime(-m_time);
+ }
+ /// Addition
GenTime & operator+=(GenTime op) {
m_time += op.m_time;
return *this;
}
+ /// Subtraction
GenTime & operator-=(GenTime op) {
m_time -= op.m_time;
return *this;
}
private:
- /** Holds the time for this object. */
+ /** Holds the time in seconds for this object. */
double m_time;
/** A delta value that is used to get around floating point rounding issues. */