摘要: staticvoidMain(string[]args){int[]arr=newint[1000];for(inti=0;i<arr.Length;i++){arr[i]=i;}//sequentialForEachintb=0;Stopwatchstopwatch=newStopwatch();stopwatch.Start();foreach(varxinarr){b=b+x;System.Threading.Thread.Sleep(1);//Console.WriteLine(x);}stopwatch.Stop();Console.WriteLine("Sequen 阅读全文
posted @ 2012-08-10 11:26 zyip 阅读(192) 评论(0) 推荐(0)