Index: base/time.h |
diff --git a/base/time.h b/base/time.h |
index 97010cbffc0e969062e435ebbf5d214fceb96a51..389887acf20cbed81f101c619931234d84141d72 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 qpc_value); |
+#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 qpc_value); |
+ |
// Returns true if the high resolution clock is working on this system. |
// This is only for testing. |
static bool IsHighResClockWorking(); |