Index: base/time/time.h |
diff --git a/base/time/time.h b/base/time/time.h |
index 41d662afa6a908a513d90acaed56d58eaa58d54e..79346f1f0569cab24a99e1f5411cd0008826a28a 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 multiply |
+ // 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 |