Menu

#8 StopWatch Does Not Work in WM6?

open
nobody
WM6 (1)
5
2008-02-21
2008-02-07
No

The OpenNET SDF StopWatch class may not work in WM6. I was testing some interface issues on the HTC 8900 Pocket PC, which is a WM6 device and i noticed the log file was filled with 0ms readings for time measurements, a sure sign that something is broken. Note that the StopWatch class performs fine on WM5 devices (both SmartPhones and PocketPCs)

Discussion

  • Jon Froehlich

    Jon Froehlich - 2008-02-21

    Logged In: YES
    user_id=1588190
    Originator: YES

    It appears that the StopWatch class is broken on the HTC 8900 but not on other WM6 devices. An easy solution would be for me to roll my own StopWatch class that uses Environment.TickCount for millisecond timing resolution. On .NET CF, DateTime.Now is limited to second resolution. This is in contrast to the desktop, which offers full millisecond resolution (or better).

     
  • Jon Froehlich

    Jon Froehlich - 2008-02-21
    • labels: --> WM6
     

Log in to post a comment.