Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear All,

I want to log data at interval as low as 50ms in Windows CE 7 which supports NET Compact framework 3.5.
Can anyone provide solution for establishing a high accuracy timer in .NET Compact Framework 3.5 in c#?

In full .NET Framework I am using Precision.NET timer which gets my work done. But I am unable to find anything related to high accuracy timers in CF 3.5.

What I have tried:

I have tried using System.Threading timer in CF3.5 but it obviously does not log data at interval as low as 50ms.
Posted
Updated 14-Jun-23 1:59am

1 solution

I do not work with the .NET Compact framework 3.5, so I popped your question into Google Search: >High accuracy timer in .NET compact framework 3.5 - Google Search[^]
and found these:
* C# .NET timing : millisecond accuracy for data logging[^]
* High resolution timer in C# - StackOverflow[^]
* Most accurate timer in .NET? - StackOverflow[^]
There are many more. It is just a matter of trying them and see which one best suits your needs.
 
Share this answer
 
Comments
PIEBALDconsult 14-Jun-23 12:05pm    
Don't forget
https://www.codeproject.com/Articles/17474/Timer-surprises-and-how-to-avoid-them

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900