Index: base/time/time.h |
diff --git a/base/time/time.h b/base/time/time.h |
index 41d662afa6a908a513d90acaed56d58eaa58d54e..56a1a8dac6ab5e4538bd16c87370ad5e91b229bc 100644 |
--- a/base/time/time.h |
+++ b/base/time/time.h |
@@ -230,6 +230,11 @@ class BASE_EXPORT Time { |
// this global header and put in the platform-specific ones when we remove the |
// migration code. |
static const int64 kWindowsEpochDeltaMicroseconds; |
+#else |
+ // To avoid overflow in QPC to Microseconds calculations, since we multiplying |
willchan no longer on Chromium
2014/08/01 22:41:55
grammar error at the end of the line. perhaps s/we
fmeawad
2014/08/05 22:20:09
Done.
|
+ // by kMicrosecondsPerSecond, then the QPC value should not exceed |
+ // (2^63 - 1) / 1E6. If it exceeds that threshold, we divide then multiply. |
+ static const int64 kQPCOverflowThreshold = 0x8637BD05AF7; |
#endif |
// Represents an exploded time that can be formatted nicely. This is kind of |