1staticvoidMain(string[]args)2{3vardt=DateTime.Now;4varrand=newRandom(DateTime.Now.Millisecond);5for(inti=0;i<20;i++)6{7Thread.Sleep(rand.Next(100,1000));8}9varstanderTime=(DateTime.Now-dt).TotalMilliseconds;10Console.WriteLine("标准的for循环,耗时{0}毫秒"...
查看全文