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

Unified Diff: base/time/time_posix.cc

Issue 2172483002: Use CLOCK_MONOTONIC_RAW for TimeTicks on Posix systems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 5 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 | 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 495e249f006523cad5e6b8754bb72e604f4f4423..54478513a238c7732944da6bf7384d6f66574d05 100644
--- a/base/time/time_posix.cc
+++ b/base/time/time_posix.cc
@@ -326,7 +326,7 @@ bool Time::FromExploded(bool is_local, const Exploded& exploded, Time* time) {
// TimeTicks ------------------------------------------------------------------
// static
TimeTicks TimeTicks::Now() {
- return TimeTicks(ClockNow(CLOCK_MONOTONIC));
+ return TimeTicks(ClockNow(CLOCK_MONOTONIC_RAW));
}
// static
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698