private void initMetrics() { if (!storeStatistics) { return; } dgSendTime = new MeanValue("Datagram send time"); statistics.addMetric(dgSendTime); dgSendInterval = new MeanValue("Datagram send interval"); statistics.addMetric(dgSendInterval); throughput = new MeanThroughput("Throughput", session.getDatagramSize()); statistics.addMetric(throughput); }
private void initMetrics() { if (!storeStatistics) { return; } dgReceiveInterval = new MeanValue("UDT receive interval", false, 64); statistics.addMetric(dgReceiveInterval); dataPacketInterval = new MeanValue("Data packet interval", false, 64); statistics.addMetric(dataPacketInterval); processTime = new MeanValue("UDT packet process time", false, 64); statistics.addMetric(processTime); dataProcessTime = new MeanValue("Data packet process time", false, 64); statistics.addMetric(dataProcessTime); }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ TimeStamp.GetHashCode(); hashCode = (hashCode * 397) ^ (RealmSlug?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MeanValue.GetHashCode(); hashCode = (hashCode * 397) ^ AdjustedMeanValue.GetHashCode(); hashCode = (hashCode * 397) ^ LowestValue.GetHashCode(); hashCode = (hashCode * 397) ^ HighestValue.GetHashCode(); hashCode = (hashCode * 397) ^ Quantity; return(hashCode); } }
/** * add a metric * @param m - the metric to add */ public void addMetric(MeanValue m) { metrics.Add(m); }
protected bool Equals(ItemData other) { return(Id == other.Id && TimeStamp.Equals(other.TimeStamp) && string.Equals(RealmSlug, other.RealmSlug) && MeanValue.Equals(other.MeanValue) && AdjustedMeanValue.Equals(other.AdjustedMeanValue) && LowestValue.Equals(other.LowestValue) && HighestValue.Equals(other.HighestValue) && Quantity == other.Quantity); }
public ActionResult MV(MeanValue meanValue) { return(View("均值", meanValue)); }