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

Unified Diff: base/time/time_win.cc

Issue 27317002: base: Add base::TimeTicks::IsHighResNowFastAndReliable (Closed) Base URL: http://git.chromium.org/chromium/src.git@reenableHeavyPage
Patch Set: Fix link errors Created 7 years, 2 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 | « base/time/time_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time_win.cc
diff --git a/base/time/time_win.cc b/base/time/time_win.cc
index f35f735bfbd053196899d560b51110b2c3e2b76a..ef8d29a92cbdcb9152ae503a4b02a28eba9d6f39 100644
--- a/base/time/time_win.cc
+++ b/base/time/time_win.cc
@@ -489,6 +489,11 @@ TimeTicks TimeTicks::HighResNow() {
}
// static
+bool TimeTicks::IsHighResNowFastAndReliable() {
+ return CPUReliablySupportsHighResTime();
+}
+
+// static
TimeTicks TimeTicks::ThreadNow() {
NOTREACHED();
return TimeTicks();
« no previous file with comments | « base/time/time_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698