Class CounterMetricCollector
A simple concurrent counter used for user-defined metrics
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NBench.Collection.Counters
Assembly: NBench.dll
Syntax
public class CounterMetricCollector : MetricCollector, IDisposable
Constructors
CounterMetricCollector(MetricName, AtomicCounter)
Declaration
public CounterMetricCollector(MetricName name, AtomicCounter counter)
Parameters
Type | Name | Description |
---|---|---|
MetricName | name | |
AtomicCounter | counter |
CounterMetricCollector(MetricName, String, AtomicCounter)
Declaration
public CounterMetricCollector(MetricName name, string unitName, AtomicCounter counter)
Parameters
Type | Name | Description |
---|---|---|
MetricName | name | |
System.String | unitName | |
AtomicCounter | counter |
Methods
Collect()
Declaration
public override double Collect()
Returns
Type | Description |
---|---|
System.Double |
Overrides
Implements
System.IDisposable