Stopwatch watch1 = new Stopwatch(); watch1.Start(); //开始计时for (int i = 0; i < 1; i++) indexBll.SortForData();Console.WriteLine("时间:" + watch1.Elapsed); //经过时间