Hi,
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?

--
Regards,
  Konrad Kruczynski
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to