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

Unified Diff: media/test/pipeline_integration_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/midi/usb_midi_device_android.cc ('k') | net/base/bandwidth_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/pipeline_integration_perftest.cc
diff --git a/media/test/pipeline_integration_perftest.cc b/media/test/pipeline_integration_perftest.cc
index 81efc909cde38c75c4f9325af92075c665151dbc..e09de39ee8fead784cd577c98655aa45b67539a3 100644
--- a/media/test/pipeline_integration_perftest.cc
+++ b/media/test/pipeline_integration_perftest.cc
@@ -24,7 +24,7 @@ static void RunPlaybackBenchmark(const std::string& filename,
PIPELINE_OK,
pipeline.Start(filename, PipelineIntegrationTestBase::kClockless));
- base::TimeTicks start = base::TimeTicks::HighResNow();
+ base::TimeTicks start = base::TimeTicks::Now();
pipeline.Play();
ASSERT_TRUE(pipeline.WaitUntilOnEnded());
@@ -35,7 +35,7 @@ static void RunPlaybackBenchmark(const std::string& filename,
if (audio_only) {
time_seconds += pipeline.GetAudioTime().InSecondsF();
} else {
- time_seconds += (base::TimeTicks::HighResNow() - start).InSecondsF();
+ time_seconds += (base::TimeTicks::Now() - start).InSecondsF();
}
}
« no previous file with comments | « media/midi/usb_midi_device_android.cc ('k') | net/base/bandwidth_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698