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

Unified Diff: base/time/time_posix.cc

Issue 69393002: Enable Time::ThreadNow() on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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.h ('k') | no next file » | 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 f8f305f426402b6cc7f4c7c5e192fc48faac3058..3378038fe44686c654abe2e60adf04654e9adb52 100644
--- a/base/time/time_posix.cc
+++ b/base/time/time_posix.cc
@@ -311,7 +311,8 @@ bool TimeTicks::IsHighResNowFastAndReliable() {
// static
TimeTicks TimeTicks::ThreadNow() {
-#if defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)
+#if (defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)) || \
+ defined(OS_ANDROID)
return ClockNow(CLOCK_THREAD_CPUTIME_ID);
#else
NOTREACHED();
« no previous file with comments | « base/time/time.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698