CounterSample Constructor (Int64, Int64, Int64, Int64, Int64, Int64, PerformanceCounterType)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the CounterSample structure and sets the CounterTimeStamp property to 0 (zero).

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public CounterSample(
	long rawValue,
	long baseValue,
	long counterFrequency,
	long systemFrequency,
	long timeStamp,
	long timeStamp100nSec,
	PerformanceCounterType counterType
)

Parameters

rawValue
Type: System.Int64

The numeric value associated with the performance counter sample.

baseValue
Type: System.Int64

An optional, base raw value for the counter, to use only if the sample is based on multiple counters.

counterFrequency
Type: System.Int64

The frequency with which the counter is read.

systemFrequency
Type: System.Int64

The frequency with which the system reads from the counter.

timeStamp
Type: System.Int64

The raw time stamp.

timeStamp100nSec
Type: System.Int64

The raw, high-fidelity time stamp.

counterType
Type: System.Diagnostics.PerformanceCounterType

A PerformanceCounterType object that indicates the type of the counter for which this sample is a snapshot.

Use this constructor to take an initial sample of the performance counter. The System Monitor supplies values for these parameters automatically when you call the NextSample method for the first time.

.NET Framework
Available since 1.1
Return to top
Show: