Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2370)

Unified Diff: base/time.h

Issue 10825053: Use DwmGetCompositionTimingInfo to get vsync info on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Elaborate comments and fix pointer formatting Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/time_win.cc » ('j') | base/time_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | base/time_win.cc » ('j') | base/time_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698