Q:

c# Sleep

System.Threading.Thread.Sleep(Milliseconds);
10
using System.Threading;

static void Main()
{
  //do stuff
  Thread.Sleep(5000) //will sleep for 5 sec
}
5
Thread.Sleep(2000); //in ms
0

New to Communities?

Join the community