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

Unified Diff: media/base/audio_converter_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/audio_bus_perftest.cc ('k') | media/base/demuxer_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_converter_perftest.cc
diff --git a/media/base/audio_converter_perftest.cc b/media/base/audio_converter_perftest.cc
index c6a475864b71ef251aa66a5dc19dc5528ecb7a2f..92bff2913084b427ae96987cf0f5a4bb0cf1e591 100644
--- a/media/base/audio_converter_perftest.cc
+++ b/media/base/audio_converter_perftest.cc
@@ -39,12 +39,12 @@ void RunConvertBenchmark(const AudioParameters& in_params,
converter.AddInput(&fake_input2);
converter.AddInput(&fake_input3);
- base::TimeTicks start = base::TimeTicks::HighResNow();
+ base::TimeTicks start = base::TimeTicks::Now();
for (int i = 0; i < kBenchmarkIterations; ++i) {
converter.Convert(output_bus.get());
}
double runs_per_second = kBenchmarkIterations /
- (base::TimeTicks::HighResNow() - start).InSecondsF();
+ (base::TimeTicks::Now() - start).InSecondsF();
perf_test::PrintResult(
"audio_converter", "", trace_name, runs_per_second, "runs/s", true);
}
« no previous file with comments | « media/base/audio_bus_perftest.cc ('k') | media/base/demuxer_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698