0
Command C#
Hello I want to know how to create something like wait for 10seconds In C#
3 Answers
+ 2
Use the System.Threading.Thread.Sleep() method to pause the execution of your code for a specified amount of time.
For example, to pause the execution of your code for 10 seconds:
System.Threading.Thread.Sleep(10000);
https://code.sololearn.com/chW5h1azRz5J/?ref=app
+ 2
Btw, you would not be able to see the effect here on Sololearn.
+ 1
System.Threading.Thread.Sleep(10000);