public void Test() { CArray array = CArray.InitInstanceByRand(SortData.SEED, SortData.COUNT); array.ISort = new CInsertionSortShell(); Console.WriteLine("starting InsertionSortShell...\nbefore sort:"); array.DisplayElements(); #region 计时区间 tim.StartTime(); array.Sort(); tim.StopTime(); #endregion Console.WriteLine("\nafter insertion sort shell:"); array.DisplayElements(); Console.WriteLine("\ntime costed of insertion sort shell:" + tim.GetResult().Milliseconds + "ms"); }