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

Unified Diff: src/base/platform/time.cc

Issue 2106243002: Enable ThreadTicks on Windows. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix test Created 4 years, 6 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 | test/unittests/base/platform/time-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/time.cc
diff --git a/src/base/platform/time.cc b/src/base/platform/time.cc
index f71af1516553d9e326ac15844852b65f23955823..e7867e07955a1094ebd6135210f6b473cfd73339 100644
--- a/src/base/platform/time.cc
+++ b/src/base/platform/time.cc
@@ -618,14 +618,14 @@ bool TimeTicks::IsHighResolutionClockWorking() {
#endif // V8_OS_WIN
-// TODO(lpy): For windows ThreadTicks implementation,
-// see http://crbug.com/v8/5000
bool ThreadTicks::IsSupported() {
#if (defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)) || \
- defined(V8_OS_MACOSX) || defined(V8_OS_ANDROID)
- return true;
+ defined(V8_OS_MACOSX) || defined(V8_OS_ANDROID)
+ return true;
+#elif defined(V8_OS_WIN)
+ return IsSupportedWin();
#else
- return false;
+ return false;
#endif
}
« no previous file with comments | « no previous file | test/unittests/base/platform/time-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698