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

Unified Diff: base/time/time_posix.cc

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made changes based on review comments (including deleting IsHighResNowFastAndReliable) Created 5 years, 11 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
Index: base/time/time_posix.cc
diff --git a/base/time/time_posix.cc b/base/time/time_posix.cc
index 34b2f5ac39aff28ca34f3940f9e1b5151029d0c9..8b207eb36a9d54ca7f6c3420c42b5755ac100921 100644
--- a/base/time/time_posix.cc
+++ b/base/time/time_posix.cc
@@ -338,7 +338,7 @@ TimeTicks TimeTicks::NowFromSystemTraceTime() {
struct timespec ts;
if (clock_gettime(kClockSystemTrace, &ts) != 0) {
// NB: fall-back for a chrome os build running on linux
- return HighResNow();
+ return Now();
}
absolute_micro =
@@ -352,7 +352,7 @@ TimeTicks TimeTicks::NowFromSystemTraceTime() {
// static
TimeTicks TimeTicks::NowFromSystemTraceTime() {
- return HighResNow();
+ return Now();
}
#endif // defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698