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 id26944
push useremorley@mozilla.com
push dateWed, 11 Jun 2014 15:14:00 +0000
treeherdermozilla-central@c7391b84d9c2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1004365
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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: