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