Use Thread.Sleep to pause a process for a while.
for (int i = 0; i <= 10; i++) { Console.WriteLine(i); System.Threading.Thread.Sleep(1000); }
This code pauses each iteration for a second.
1000 milisecond = 1 second
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: