Answers for "how to sleep for five seconds in C#"

C#
14

c# Sleep

using System.Threading;

static void Main()
{
  //do stuff
  Thread.Sleep(5000) //will sleep for 5 sec
}
Posted by: Guest on March-02-2020
14

how to wait in c#

System.Threading.Thread.Sleep(Milliseconds);
Posted by: Guest on July-02-2020
1

import time C#

using system.Threading //Thread.sleep
Posted by: Guest on October-03-2020

Code answers related to "how to sleep for five seconds in C#"

C# Answers by Framework

Browse Popular Code Answers by Language