Bug 1004365 part 2 - Add TimeDuration != operator; r=froydnj
authorBrian Birtles <birtles@gmail.com>
Wed, 11 Jun 2014 14:19:07 +0900
changeset 188065 bda7f4d2b98b81296069a94fb9c3d9f95a9656c3
parent 188064 bb50fd44b52a3293117690e8a116935832e3d536
child 188066 25494b32627f15afb3db4ce5bf4b8f3394db0ac4
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersfroydnj
bugs1004365
milestone33.0a1
Bug 1004365 part 2 - Add TimeDuration != operator; r=froydnj
xpcom/ds/TimeStamp.h
--- a/xpcom/ds/TimeStamp.h
+++ b/xpcom/ds/TimeStamp.h
@@ -140,16 +140,19 @@ public:
     return mValue >= aOther.mValue;
   }
   bool operator>(const TimeDuration& aOther) const {
     return mValue > aOther.mValue;
   }
   bool operator==(const TimeDuration& aOther) const {
     return mValue == aOther.mValue;
   }
+  bool operator!=(const TimeDuration& aOther) const {
+    return mValue != aOther.mValue;
+  }
 
   // Return a best guess at the system's current timing resolution,
   // which might be variable.  TimeDurations below this order of
   // magnitude are meaningless, and those at the same order of
   // magnitude or just above are suspect.
   static TimeDuration Resolution();
 
   // We could define additional operators here: