Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic example for waiting intervals. #3

Open
stormwindy opened this issue Nov 16, 2020 · 1 comment
Open

Basic example for waiting intervals. #3

stormwindy opened this issue Nov 16, 2020 · 1 comment

Comments

@stormwindy
Copy link

I am new to C#. I intend to use the timer to repeat an event every 100ms. Can you kindly give me a sample code that uses the timer implemented? If not any tips are appreciated regarding where to start reading the source code.

Thanks.

@mzboray
Copy link
Owner

mzboray commented Nov 24, 2020

Hi. There's some sample code in HighPrecisionTimer/TimerDemo/Program.cs

However, for an interval like 100ms it is unlikely you will need this code and you can use the .NET's builtin System.Threading.Timer for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants