[Mono-dev] high-resolution timer in Mono?
Brian Crowell
mono-devel at fluggo.com
Fri Feb 24 13:08:40 EST 2006
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
More information about the Mono-devel-list
mailing list