Jonathan Resnick wrote:
What is the best way to do accurate high-resolution timing in Mono on Linux? I'm basically looking for the equivalent of QueryPerformanceCounter() on Windows... I looked at System.Environment.TickCount, but it has a resolution that "cannot be less than 500 milliseconds", according to the Mono docs. Is there a high-resolution timer available to Mono?

Not that I know of, but anyone wanting to develop one would want to implement the new System.Diagnostics.Stopwatch class from .NET 2.0. It was designed to wrap/replace QueryPerformanceCounter(). I guess a lot of people wanted that.

--Brian
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to