Making a settable time delay in C#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Is it possible to make a delay in the C# code such that if I wanted to make it possible to have a 3 second delay at certain points in the code that would simply hold the code for 3 seconds and then continue on again?  I am trying to make a program that will take measurements and I need it to run the lab instrument for a set time, and not progress in the code while it is running.  I would also like to be able to change the time delay from the user interface rather than having to change the code.
Thanks,
SVandal


View the full article
 
Back
Top