.net sleep thread code example
Example 1: c# Sleep
using System.Threading;
static void Main()
{
//do stuff
Thread.Sleep(5000) //will sleep for 5 sec
}
Example 2: c# thread sleep
Thread.Sleep(2000); //in ms
Example 3: import time C#
using system.Threading //Thread.sleep