[Mono-dev] Stopwatch's frequency

"Konrad M. Kruczyński" konrad.kruczynski at gmail.com
Tue Jan 3 17:28:36 EST 2012

lastly I've explored Stopwatch class implementation in Mono. It seems
that it has hardcoded 100ns resolution. However examining
mono_100ns_ticks function reveals that is written well and uses
platform specific high resolution timer.

My question is: why the initializer of the Frequency field (as well as
the IsHighResolution) is not some internal call to check hr frequency
using something like clock_getres?

I'd like to submit pull request with patch doing just that if I find
enough time, but first I would like to ask whether it would be
accepted. Are there some reasons for the current implementation?

  Konrad Kruczynski

More information about the Mono-devel-list mailing list