docs: function calculateLatency(timestamps){
          var length = timestamps.length,
              sumLatency = 0;
  
          for (var i = 1; i < length; i++){
              sumLatency += (timestamps[i] - timestamps[i-1])/2;
          }
  
          return (sumLatency/(length-1));
      }