+ 1
How do I make the program wait before it works
how do I make the program stop and continue after a few seconds
4 Respostas
+ 5
in java :-
You need to use da Thread.sleep() call: -
ex: Thread.sleep(1000);
1000 is the number of milliseconds that da program will pause.
try {
Thread.sleep( 1000);
} catch (InterruptedException ex) {
Thread.currentThread().interrupt
}
0
Threading.Thread.Sleep(milliseconds);
0
The tag is C#
0
thx😊