For some private project I use Stopwatch
for performance measurement.
But on low repitition count of calls I want to measure, I end up with 0 ElapsedMilliseconds
,
which makes it difficult to calculate an average.
I thought about writing my own Stopwatch class. It could calculate with ticks and give a vague ElapsedMicroseconds
based on Stopwatch.ElapsedTicks
and TimeSpan.TicksPerMillisecond
. This will probably be not a very good way.
I definitly need something that is backed up by the high performance counters of winapi, so datetime and such will not suffice.
Are there any other ideas?