From fa914e283c7c6aa4cef6016788f7017dcbcb3b02 Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Wed, 3 Dec 2014 13:28:53 +0000 Subject: [PATCH] Adding a duration printout to neteq_rtpplay BUG=2692 TBR=tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/30339004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7796 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc b/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc index 7a5968a217..712a3d0686 100644 --- a/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc +++ b/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc @@ -275,6 +275,7 @@ int main(int argc, char* argv[]) { // This is the main simulation loop. // Set the simulation clock to start immediately with the first packet. + int start_time_ms = packet->time_ms(); int time_now_ms = packet->time_ms(); int next_input_time_ms = time_now_ms; int next_output_time_ms = time_now_ms; @@ -380,7 +381,8 @@ int main(int argc, char* argv[]) { time_now_ms = std::min(next_input_time_ms, next_output_time_ms); } - std::cout << "Simulation done" << std::endl; + printf("Simulation done\n"); + printf("Produced %i ms of audio\n", time_now_ms - start_time_ms); delete neteq; webrtc::Trace::ReturnTrace();