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

Unified Diff: base/time/time.h

Issue 2090783002: Limit InterProcessTimeTicksConverter to platforms that require it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac 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 | base/time/time_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time.h
diff --git a/base/time/time.h b/base/time/time.h
index d51cf485694ac2256d59b27d87e520acdd898171..13e6a6cc88abb04c9dff5963e62a2b64a98dbde2 100644
--- a/base/time/time.h
+++ b/base/time/time.h
@@ -707,6 +707,12 @@ class BASE_EXPORT TimeTicks : public time_internal::TimeBase<TimeTicks> {
// clock will be used instead.
static bool IsHighResolution();
+ // Returns true if tick clock is consistent across processes meaning that
+ // tick counts taken on different processes can be safely compared with one
+ // another. Time values from different threads that differ 1 tick have an
charliea (OOO until 10-5) 2016/06/29 22:38:54 A couple suggestions: 1) s/tick clock/TimeTicks 2
majidvp 2016/07/05 01:45:37 Done.
+ // ambiguous ordering.
+ static bool IsConsistentAcrossProcesses();
charliea (OOO until 10-5) 2016/06/29 22:38:54 It looks like, in all cases, IsConsistentAcrossPro
majidvp 2016/07/05 01:45:37 This is true but that should be seen as a "coincid
charliea (OOO until 10-5) 2016/07/06 17:43:52 Acknowledged.
+
#if defined(OS_WIN)
// Translates an absolute QPC timestamp into a TimeTicks value. The returned
// value has the same origin as Now(). Do NOT attempt to use this if
« no previous file with comments | « no previous file | base/time/time_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698