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

Unified Diff: media/base/vector_math_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
« no previous file with comments | « media/base/sinc_resampler_unittest.cc ('k') | media/base/yuv_convert_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/vector_math_perftest.cc
diff --git a/media/base/vector_math_perftest.cc b/media/base/vector_math_perftest.cc
index 2cf4691be4a46da6689d859f7ed1f452f0a614e5..ae3b54e6bf5917bad802eae7e7a33a8b04a81d70 100644
--- a/media/base/vector_math_perftest.cc
+++ b/media/base/vector_math_perftest.cc
@@ -36,7 +36,7 @@ class VectorMathPerfTest : public testing::Test {
bool aligned,
const std::string& test_name,
const std::string& trace_name) {
- TimeTicks start = TimeTicks::HighResNow();
+ TimeTicks start = TimeTicks::Now();
for (int i = 0; i < kBenchmarkIterations; ++i) {
fn(input_vector_.get(),
kScale,
@@ -44,7 +44,7 @@ class VectorMathPerfTest : public testing::Test {
output_vector_.get());
}
double total_time_milliseconds =
- (TimeTicks::HighResNow() - start).InMillisecondsF();
+ (TimeTicks::Now() - start).InMillisecondsF();
perf_test::PrintResult(test_name,
"",
trace_name,
@@ -58,12 +58,12 @@ class VectorMathPerfTest : public testing::Test {
int len,
const std::string& test_name,
const std::string& trace_name) {
- TimeTicks start = TimeTicks::HighResNow();
+ TimeTicks start = TimeTicks::Now();
for (int i = 0; i < kEWMABenchmarkIterations; ++i) {
fn(0.5f, input_vector_.get(), len, 0.1f);
}
double total_time_milliseconds =
- (TimeTicks::HighResNow() - start).InMillisecondsF();
+ (TimeTicks::Now() - start).InMillisecondsF();
perf_test::PrintResult(test_name,
"",
trace_name,
« no previous file with comments | « media/base/sinc_resampler_unittest.cc ('k') | media/base/yuv_convert_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698