how to get milliseconds from PPC

Hi,

I want to display seconds and milliseconds of time span in PPC apps.

ck1.milliseconds --- didn't return any vlaue. Always zero. why

How to get this

Thak You!



Answer this question

how to get milliseconds from PPC

  • Chris Cowherd

    what the heck type is ck1 this is .net and not native code you're working with

    if it's not a timespan, look into: System.TimeSpan.Milliseconds


  • Vlad Bezden

    On the Pocket PC DateTime class does not provide milliseconds - it is always zero. You need to use Environment.TickCount to measure milliseconds. If you need better accuracy - P/Invoke QueryPerformanceCounters

  • how to get milliseconds from PPC