Index: base/time.h |
diff --git a/base/time.h b/base/time.h |
index 97010cbffc0e969062e435ebbf5d214fceb96a51..a9af67e5bcf5d30c5d956f6bb513e08beee4d15c 100644 |
--- a/base/time.h |
+++ b/base/time.h |
@@ -64,6 +64,9 @@ class BASE_EXPORT TimeDelta { |
static TimeDelta FromSeconds(int64 secs); |
static TimeDelta FromMilliseconds(int64 ms); |
static TimeDelta FromMicroseconds(int64 us); |
+#if defined(OS_WIN) |
+ static TimeDelta FromQPCValue(LONGLONG qpcValue); |
+#endif |
// Converts an integer value representing TimeDelta to a class. This is used |
// when deserializing a |TimeDelta| structure, using a value known to be |
@@ -510,6 +513,8 @@ class BASE_EXPORT TimeTicks { |
// Get the absolute value of QPC time drift. For testing. |
static int64 GetQPCDriftMicroseconds(); |
+ static TimeTicks FromQPCValue(LONGLONG qpcValue); |
+ |
// Returns true if the high resolution clock is working on this system. |
// This is only for testing. |
static bool IsHighResClockWorking(); |