gjshah7254
12/15/2015 - 3:27 AM

C# make your code to wait for some time

C# make your code to wait for some time

        ThreadPool.QueueUserWorkItem(delegate
        {
            Thread.Sleep(5000);
            Response.Write("1"  + DateTime.Now.ToString());            
            Thread.Sleep(5000);
            Response.Write("2" + DateTime.Now.ToString());
            Thread.Sleep(5000);
            Response.Write("3" + DateTime.Now.ToString());
        });