0

Command C#

Hello I want to know how to create something like wait for 10seconds In C#

11th Dec 2022, 10:50 PM
Lejmon
Lejmon - avatar
3 Respuestas
+ 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
12th Dec 2022, 12:10 AM
Calviղ
Calviղ - avatar
+ 2
Btw, you would not be able to see the effect here on Sololearn.
12th Dec 2022, 4:03 AM
Bob_Li
Bob_Li - avatar
+ 1
System.Threading.Thread.Sleep(10000);
12th Dec 2022, 9:38 AM
Lejmon
Lejmon - avatar