summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
Diffstat (limited to 'raul')
-rw-r--r--raul/TimeStamp.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/raul/TimeStamp.hpp b/raul/TimeStamp.hpp
index a73331e..7ce9d95 100644
--- a/raul/TimeStamp.hpp
+++ b/raul/TimeStamp.hpp
@@ -135,18 +135,18 @@ public:
|| (_ticks == rhs._ticks && _subticks < rhs._subticks));
}
- inline bool operator<=(const TimeStamp& rhs) const {
+ inline bool operator>(const TimeStamp& rhs) const {
assert(_unit == rhs._unit);
- return (_ticks <= rhs._ticks
- || (_ticks == rhs._ticks && _subticks <= rhs._subticks));
+ return (_ticks > rhs._ticks
+ || (_ticks == rhs._ticks && _subticks > rhs._subticks));
}
- inline bool operator>=(const TimeStamp& rhs) const {
- return ! (rhs < *this);
+ inline bool operator<=(const TimeStamp& rhs) const {
+ return (*this == rhs) || ((*this) < rhs);
}
- inline bool operator>(const TimeStamp& rhs) const {
- return ! (rhs <= *this);
+ inline bool operator>=(const TimeStamp& rhs) const {
+ return (*this == rhs) || ((*this) > rhs);
}
inline TimeStamp& operator+=(const TimeStamp& rhs) {