Slowing down a processKadir Camoglu19yPublished Feb 17, 2007, 12:00 AMUpdated Feb 17, 2007, 2:40 AM5.2k00Reactions×25BlogUse 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 secondCommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.