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
diff --git a/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc b/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc
index 7a5968a..712a3d0 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 @@
 
   // 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 @@
     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();