troubleshooting Question

How to determine timespan to the milliseconds on PDAs?

Avatar of AMT_VDM
AMT_VDMFlag for Switzerland asked on
.NET ProgrammingSmartphone ProgrammingWindows OS
6 Comments1 Solution414 ViewsLast Modified:
I'm using C# (VS2005). Using the function GetDate.Ticks only returns me values with an accuracy of a second on an IPAQ2490.
i.e. 633082888810000000      long
or  633082888820000000      long
So this is unreliable to find out timedifferences of less than a second which is what I need to do.

Here's how I tried to implement it earlier:
            long _TicksSinceLastRead = DateTime.Now.Ticks - _lngLastReceived;

            if (_TicksSinceLastRead < _lngMinimalTimeForResponse)
                Thread.Sleep((int)(_lngMinimalTimeForResponse - _TicksSinceLastRead)/10000);

Can you provide me with code/free components I can use to get an accuracy in the milliseconds range?

Best regards
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros