Class CacheStatCounter.SampleCounter
Keeps track of the performance samples
Inheritance
System.Object
CacheStatCounter.SampleCounter
Namespace: ImageVault.Common.Data.Caching
Assembly: ImageVault.Common.dll
Syntax
public class SampleCounter : Object
Constructors
SampleCounter()
Default constructor
Declaration
public SampleCounter()
SampleCounter(CacheStatCounter.SampleCounter)
Copy constructor
Declaration
public SampleCounter(CacheStatCounter.SampleCounter counter)
Parameters
Type | Name | Description |
---|---|---|
CacheStatCounter.SampleCounter | counter |
Properties
AverageTime
The average number of milliseconds for a sample
Declaration
public double AverageTime { get; }
Property Value
Type | Description |
---|---|
System.Double |
Count
The number of samples
Declaration
public int Count { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ElapsedTicks
The total number of elapsed ticks for all samples
Declaration
public long ElapsedTicks { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
MaxTicks
The maximum number of ticks for a sample
Declaration
public long MaxTicks { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
MaxTime
The maximum time in ms for a sample
Declaration
public double MaxTime { get; }
Property Value
Type | Description |
---|---|
System.Double |
MinTicks
The minimum number of ticks for a sample
Declaration
public long MinTicks { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
MinTime
The minimum time in ms for a sample
Declaration
public double MinTime { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
AddSample(Int64)
Adds a sample to the counter
Declaration
public void AddSample(long elapsedTicks)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | elapsedTicks |