private static double getDiffEndToStart(List<Double> values) {
    if (values.isEmpty()) {
      return 0;
    }
    if (values.size() > 1) {
      return values.get(values.size() - 1) - values.get(0);
    } else {
      return values.get(0);
    }
  }
@param statArray     array of stats provided from getStats()
@param fullyDetailed true if the detailed arrays of specific stat values are to be added to the summary

@return  the stat summary : (Sample stats on Chrome 74)
    "Starting Timestamp": "2019-06-28 162729",
    "Ending Timestamp": "2019-06-28 162740",
    "Total Inbound Bytes Received (Bytes)": 642114,
    "Total Inbound Audio Bytes Received (Bytes)": 114190,
    "Total Inbound Video Bytes Received (Bytes)": 527924,
    "Total Outbound Bytes Sent (Bytes)": 644136,
    "Total Outbound Audio Bytes Sent (Bytes)": 114371,
    "Total Outbound Video Bytes Sent (Bytes)": 529765,
    "Total Round Trip Time (ms)": 0.0,
    "Average Current Round Trip Time (ms)": 0.0,
    "inbound": {
            "audio": [
            {
                "streamId": "RTCInboundRTPAudioStream_3333556480",
                "Total Bytes Received (Bytes)": "34997",
                "Average Received Bitrate (kbps)": "3071",
                "Total Packets Received": "585",
                "Average Audio Level (dB)": "0",
                "Total Packets Lost": 0,
                "Packets Lost (%)": "0",
                "Packets Discarded (%)": "0",
                "Average Audio Jitter (ms)": "0"
            }
        ],
        "video": [
            {
                "streamId": "RTCInboundRTPVideoStream_3131213379",
                "Total Bytes Received (Bytes)": "1031833",
                "Average Received Bitrate (kbps)": "95078",
                "Total Packets Received": "1006",
                "Frames Received": "234",
                "Average Frame Rate (fps)": "0",
                "Total Packets Lost": 0,
                "Packets Lost (%)": "0",
                "Packets Discarded (%)": "0"
            }
        ]
    },
    "outbound": {
        "audio": [ same as inbound stats ],
        "video": [ same as inbound stats ]
    }
KITE-Framework/src/main/java/org/webrtc/kite/stats/StatsUtils.java