//测试一段程序执行大概需要多久
System.Diagnostics.Stopwatch SP1 = new System.Diagnostics.Stopwatch();
SP1.Start();method();
SP1.Stop();
System.TimeSpan T1 = SP1.Elapsed;
Console.WriteLine(T1.ToString());
Console.ReadKey();
//测试一段程序执行大概需要多久
System.Diagnostics.Stopwatch SP1 = new System.Diagnostics.Stopwatch();
SP1.Start();