/// <summary>Constructor - create a new metric</summary> /// <param name="nam">the name of the metrics to be used to publish the metric</param> /// <param name="registry">- where the metrics object will be registered</param> public MetricsTimeVaryingRate(string nam, MetricsRegistry registry, string description ) : base(nam, description) { currentData = new MetricsTimeVaryingRate.Metrics(); previousIntervalData = new MetricsTimeVaryingRate.Metrics(); minMax = new MetricsTimeVaryingRate.MinMax(); registry.Add(nam, this); }
// total time or average time internal virtual void Set(MetricsTimeVaryingRate.Metrics resetTo) { numOperations = resetTo.numOperations; time = resetTo.time; }