parameters: (self)
docstring: Prints delay, clock drift and bitrate statistics.
docstring_summary: Prints delay, clock drift and bitrate statistics.
docstring_tokens: Prints delay clock drift and bitrate statistics .
function: def PrintDurationStatistics(self):
      """Prints delay, clock drift and bitrate statistics."""
  
      min_delay = min(point.delay for point in self.data_points)
  
      for point in self.data_points:
        point.absdelay = point.delay - min_delay
  
      stream_duration_sender = self.data_points[-1].real_send_time_ms / 1000
      print("Stream duration at sender: {:.1f} seconds".format(
          stream_duration_sender
      ))
  
      arrival_timestamps_ms = [point.arrival_timestamp_ms for point in
                               self.data_points]
      stream_duration_receiver = (max(arrival_timestamps_ms) -
                                  min(arrival_timestamps_ms)) / 1000
      print("Stream duration at receiver: {:.1f} seconds".format(
          stream_duration_receiver
      ))
  
      print("Clock drift: {:.2f}%".format(
          100 * (stream_duration_receiver / stream_duration_sender - 1)
      ))
  
      total_size = sum(point.size for point in self.data_points) * 8 / 1000
      print("Send average bitrate: {:.2f} kbps".format(
          total_size / stream_duration_sender))
  
      print("Receive average bitrate: {:.2f} kbps".format(
          total_size / stream_duration_receiver))
function_tokens: def PrintDurationStatistics ( self ) : min_delay = min ( point . delay for point in self . data_points ) for point in self . data_points : point . absdelay = point . delay - min_delay stream_duration_sender = self . data_points [ - 1 ] . real_send_time_ms / 1000 print ( "Stream duration at sender: {:.1f} seconds" . format ( stream_duration_sender ) ) arrival_timestamps_ms = [ point . arrival_timestamp_ms for point in self . data_points ] stream_duration_receiver = ( max ( arrival_timestamps_ms ) - min ( arrival_timestamps_ms ) ) / 1000 print ( "Stream duration at receiver: {:.1f} seconds" . format ( stream_duration_receiver ) ) print ( "Clock drift: {:.2f}%" . format ( 100 * ( stream_duration_receiver / stream_duration_sender - 1 ) ) ) total_size = sum ( point . size for point in self . data_points ) * 8 / 1000 print ( "Send average bitrate: {:.2f} kbps" . format ( total_size / stream_duration_sender ) ) print ( "Receive average bitrate: {:.2f} kbps" . format ( total_size / stream_duration_receiver ) )