C# 程序执行时间查看, 效率查看
Stopwatch watch1 = new Stopwatch();
watch1.Start(); //开始计时
for (int i = 0; i < 1; i++) indexBll.SortForData();
Console.WriteLine("时间:" + watch1.Elapsed); //经过时间
Stopwatch watch1 = new Stopwatch();
watch1.Start(); //开始计时
for (int i = 0; i < 1; i++) indexBll.SortForData();
Console.WriteLine("时间:" + watch1.Elapsed); //经过时间