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?