Multiple choice technology web technology

In C# Thread.Sleep(time) measures time in:

  1. seconds

  2. milliseconds

  3. nanoseconds

  4. minutes

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Thread.Sleep in C# accepts time in milliseconds. To sleep for seconds, you must multiply by 1000. This is consistent across .NET Framework and .NET/Core.