c# thread sleep

C#
Thread.Sleep(2000); //in msusing System.Threading;

static void Main()
{
  //do stuff
  Thread.Sleep(5000) //will sleep for 5 sec
}
Source

Also in C#: