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

Unified Diff: content/common/cc_messages_perftest.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: More changes based on review comments. 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: content/common/cc_messages_perftest.cc
diff --git a/content/common/cc_messages_perftest.cc b/content/common/cc_messages_perftest.cc
index 1aa09e875d55512a48e7d61421a7d7f69a6afcb3..78085d21f5606a590e7f24970f153cd878f05c04 100644
--- a/content/common/cc_messages_perftest.cc
+++ b/content/common/cc_messages_perftest.cc
@@ -33,7 +33,7 @@ class CCMessagesPerfTest : public testing::Test {
IPC::ParamTraits<CompositorFrame>::Write(&msg, frame);
}
- base::TimeTicks start = base::TimeTicks::HighResNow();
+ base::TimeTicks start = base::TimeTicks::Now();
base::TimeTicks end =
start + base::TimeDelta::FromMilliseconds(kTimeLimitMillis);
base::TimeDelta min_time;
@@ -45,10 +45,10 @@ class CCMessagesPerfTest : public testing::Test {
++count;
}
- base::TimeTicks now = base::TimeTicks::HighResNow();
+ base::TimeTicks now = base::TimeTicks::Now();
if (now - start < min_time || min_time == base::TimeDelta())
min_time = now - start;
- start = base::TimeTicks::HighResNow();
+ start = base::TimeTicks::Now();
}
perf_test::PrintResult(
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698