I have an instance of PerformanceCounter
, I call NextSample()
on it and get a CounterSample
. In it, there are several time-related fields: CounterFrequency, SystemFrequency, CounterTimeStamp, Timestamp and TimeStamp100nSec.
The MSDN page for CounterSample only says "Gets the raw counter frequency" and similar unhelpful descriptions, and a sample that prints the value without explanations.
- What do these mean exactly?
- In what units are they? I tried all
DateTime.FromX()
functions, but none produces a reasonable result.
DateTime.FromFileTimeUtc(sample.TimeStamp100nSec)
. – Auto