c# - Adding Delay in application (for debugging) -


i'd add delay between 2 lines of code because i'm testing updateprogress template. ideally, one-liner.

thanks.

try sleep method. example:

thread.sleep(3000); //3 seconds 

you need add using directive:

using system.threading; 

to access method.

the parameter pass number of milliseconds want suspend current thread.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -