<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="11.0.0" />

System.Diagnostics.CounterSample

public struct CounterSample
Defines a structure that holds the raw data for a performance counter.
namespace System.Diagnostics { public readonly struct CounterSample { public static CounterSample Empty; public long BaseValue { get; } public long CounterFrequency { get; } public long CounterTimeStamp { get; } public PerformanceCounterType CounterType { get; } public long RawValue { get; } public long SystemFrequency { get; } public long TimeStamp { get; } public long TimeStamp100nSec { get; } public CounterSample(long rawValue, long baseValue, long counterFrequency, long systemFrequency, long timeStamp, long timeStamp100nSec, PerformanceCounterType counterType); public CounterSample(long rawValue, long baseValue, long counterFrequency, long systemFrequency, long timeStamp, long timeStamp100nSec, PerformanceCounterType counterType, long counterTimeStamp); public static float Calculate(CounterSample counterSample); public static float Calculate(CounterSample counterSample, CounterSample nextCounterSample); public bool Equals(CounterSample sample); public static bool operator ==(CounterSample a, CounterSample b); public static bool operator !=(CounterSample a, CounterSample b); } }