Stopwatch for exact timer in VB compact framework

Hi,

I need an exact Timer for my pda, I used the Timer from Toolbox, but this isnt exact enough. I read from Stopwatch in - system.diagnostics.stopwatch - but it doesnt work for me. I tried it in Visual Basic 2005 for net compact framework 1 and 2 without success.
--- dim sw as stopwatch ---
But i got "type stopwatch is not defined"
Is "stopwatch" not available in compact network or is there anything to define before stopwatch is running Who can help an show me the right way A little code would be nice (Im a beginner)

Thanks Pit




Answer this question

Stopwatch for exact timer in VB compact framework

  • Seiggy

    any other ideas it isn't available anymone on opennetcg.org

    i am working on a stopwatch for swimming training and can't get the accuracy of it to the centesimal of a second..

  • hdp203

    You can use StopWatch class from OpenNetcf.org. Or P/Invoke QueryPerformanceCounter() API.

    http://msdn.microsoft.com/library/en-us/dnnetcomp/html/PInvokeLib.asp



  • simon_

    You still can click on the link above and see how to P/Invoke QueryPerformanceCounter(). Usually it’s accurate to a microsecond on most Pocket PCs, fraction of nanoseconds on PC. Should be enough for swimming training.



  • Stopwatch for exact timer in VB compact framework