0

How to Delay Output time in C#?

What's the code that let us delay printing output for some seconds?

28th Jun 2017, 4:14 AM
AdamK100
AdamK100 - avatar
3 Antworten
+ 3
Learned from https://cheeze.club/zs5j using System; using System.Threading; class Example { static void Main() { Thread.Sleep(2000); Console.WriteLine("something"); } }
28th Jun 2017, 4:20 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
Thank you
28th Jun 2017, 4:21 AM
AdamK100
AdamK100 - avatar
+ 2
using System.Threading; Thread.Sleep(100); //time in milliseconds
28th Jun 2017, 7:29 AM
Yasiru Nayanajith
Yasiru Nayanajith - avatar