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

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -