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

Unified Diff: base/time/time_posix.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_mac.cc ('k') | base/time/time_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time_posix.cc
diff --git a/base/time/time_posix.cc b/base/time/time_posix.cc
index 141da8f86b484d64884646c9cd4b0f7d06d05eee..5e06ce93cf039fd420549a345915e2d0ffd62bea 100644
--- a/base/time/time_posix.cc
+++ b/base/time/time_posix.cc
@@ -268,6 +268,11 @@ TimeTicks TimeTicks::HighResNow() {
}
// static
+bool TimeTicks::IsHighResNowFastAndReliable() {
+ return true;
+}
+
+// static
TimeTicks TimeTicks::ThreadNow() {
#if defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)
return ClockNow(CLOCK_THREAD_CPUTIME_ID);
« no previous file with comments | « base/time/time_mac.cc ('k') | base/time/time_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698