CounterSample Structure
.NET Framework 4.5
Defines a structure that holds the raw data for a performance counter.
Namespace: System.Diagnostics
Assembly: System (in System.dll)
The CounterSample type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CounterSample(Int64, Int64, Int64, Int64, Int64, Int64, PerformanceCounterType) | Initializes a new instance of the CounterSample structure and sets the CounterTimeStamp property to 0 (zero). |
![]() | CounterSample(Int64, Int64, Int64, Int64, Int64, Int64, PerformanceCounterType, Int64) | Initializes a new instance of the CounterSample structure and sets the CounterTimeStamp property to the value that is passed in. |
| Name | Description | |
|---|---|---|
![]() | BaseValue | Gets an optional, base raw value for the counter. |
![]() | CounterFrequency | Gets the raw counter frequency. |
![]() | CounterTimeStamp | Gets the counter's time stamp. |
![]() | CounterType | Gets the performance counter type. |
![]() | RawValue | Gets the raw value of the counter. |
![]() | SystemFrequency | Gets the raw system frequency. |
![]() | TimeStamp | Gets the raw time stamp. |
![]() | TimeStamp100nSec | Gets the raw, high-fidelity time stamp. |
| Name | Description | |
|---|---|---|
![]() ![]() | Calculate(CounterSample) | Calculates the performance data of the counter, using a single sample point. This method is generally used for uncalculated performance counter types. |
![]() ![]() | Calculate(CounterSample, CounterSample) | Calculates the performance data of the counter, using two sample points. This method is generally used for calculated performance counter types, such as averages. |
![]() | Equals(CounterSample) | Indicates whether the specified CounterSample structure is equal to the current CounterSample structure. |
![]() | Equals(Object) | Indicates whether the specified structure is a CounterSample structure and is identical to the current CounterSample structure. (Overrides ValueType.Equals(Object).) |
![]() | GetHashCode | Gets a hash code for the current counter sample. (Overrides ValueType.GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Returns a value that indicates whether two CounterSample structures are equal. |
![]() ![]() | Inequality | Returns a value that indicates whether two CounterSample structures are not equal. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.gif?cs-save-lang=1&cs-lang=fsharp)
.gif?cs-save-lang=1&cs-lang=fsharp)
.gif?cs-save-lang=1&cs-lang=fsharp)
.gif?cs-save-lang=1&cs-lang=fsharp)
.gif?cs-save-lang=1&cs-lang=fsharp)