Source:
public void tccReceived(RTCPTCCPacket tccPacket) { RTCPTCCPacket.PacketMap packetMap = tccPacket.getPackets(); long previousArrivalTimeMs = -1; for (Map.Entry<Integer, Long> entry : packetMap.entrySet()) { long arrivalTime250Us = entry.getValue(); if (arrivalTime250Us == -1) { continue; } if (remoteReferenceTimeMs == -1) { remoteReferenceTimeMs = RTCPTCCPacket.getReferenceTime( new ByteArrayBufferImpl( tccPacket.fci, 0, tccPacket.fci.length)) / 4; localReferenceTimeMs = System.currentTimeMillis(); } PacketDetail packetDetail; synchronized (sentPacketsSyncRoot) { packetDetail = sentPacketDetails.remove(entry.getKey()); } if (packetDetail == null) { continue; } long arrivalTimeMs = arrivalTime250Us / 4 - remoteReferenceTimeMs + localReferenceTimeMs; DiagnosticContext diagnosticContext = this.diagnosticContextProvider.getDiagnosticContext(); if (logger.isDebugEnabled() && diagnosticContext != null) { if (previousArrivalTimeMs != -1) { long diff_ms = arrivalTimeMs - previousArrivalTimeMs; logger.debug(diagnosticContext .makeTimeSeriesPoint("packet_ack") .addField("seq", entry.getKey()) .addField("arrival_time_ms", arrivalTimeMs) .addField("diff_ms", diff_ms)); } else { logger.debug(diagnosticContext .makeTimeSeriesPoint("packet_ack") .addField("seq", entry.getKey()) .addField("arrival_time_ms", arrivalTimeMs)); } } previousArrivalTimeMs = arrivalTimeMs; long sendTime24bits = RemoteBitrateEstimatorAbsSendTime .convertMsTo24Bits(packetDetail.packetSendTimeMs); bitrateEstimatorAbsSendTime.incomingPacketInfo( arrivalTimeMs, sendTime24bits, packetDetail.packetLength, tccPacket.getSourceSSRC()); } }

Target:
public void tccReceived(RTCPTCCPacket tccPacket) { RTCPTCCPacket.PacketMap packetMap = tccPacket.getPackets(); long previousArrivalTimeMs = -1; for (Map.Entry<Integer, Long> entry : packetMap.entrySet()) { long arrivalTime250Us = entry.getValue(); if (arrivalTime250Us == -1) { continue; } if (remoteReferenceTimeMs == -1) { remoteReferenceTimeMs = RTCPTCCPacket.getReferenceTime250us( new ByteArrayBufferImpl( tccPacket.fci, 0, tccPacket.fci.length)) / 4; localReferenceTimeMs = System.currentTimeMillis(); } PacketDetail packetDetail; synchronized (sentPacketsSyncRoot) { packetDetail = sentPacketDetails.remove(entry.getKey()); } if (packetDetail == null) { continue; } long arrivalTimeMs = arrivalTime250Us / 4 - remoteReferenceTimeMs + localReferenceTimeMs; if (logger.isDebugEnabled()) { if (previousArrivalTimeMs != -1) { long diff_ms = arrivalTimeMs - previousArrivalTimeMs; logger.debug(diagnosticContext .makeTimeSeriesPoint("packet_ack") .addKey("tcc_engine", hashCode()) .addField("seq", entry.getKey()) .addField("arrival_time_ms", arrivalTimeMs) .addField("diff_ms", diff_ms)); } else { logger.debug(diagnosticContext .makeTimeSeriesPoint("packet_ack") .addKey("tcc_engine", hashCode()) .addField("seq", entry.getKey()) .addField("arrival_time_ms", arrivalTimeMs)); } } previousArrivalTimeMs = arrivalTimeMs; long sendTime24bits = RemoteBitrateEstimatorAbsSendTime .convertMsTo24Bits(packetDetail.packetSendTimeMs); bitrateEstimatorAbsSendTime.incomingPacketInfo( arrivalTimeMs, sendTime24bits, packetDetail.packetLength, tccPacket.getSourceSSRC()); } }