public void SortDoubleData(ISorts sortingMethod, string nameOfSort) { stopWatch.ResetStopWatch(); stopWatch.StartStopWatch(); sortingMethod.Sort(); stopWatch.StopStopWatch(); stopWatch.GetTimeElapsed(nameOfSort); stopWatch.ResetStopWatch(); stopWatch.StartStopWatch(); sortingMethod.WriteSortList(); stopWatch.StartStopWatch(); stopWatch.GetTimeElapsed(nameOfSort + "To Write To File"); }
//I have two methods one for the guids and the other for Doubles public void SortGuidData(ISorts sortingMethod, string nameOfSort) { sortingMethod.ChangeGuidsToInt64(); stopWatch.ResetStopWatch(); stopWatch.StartStopWatch(); sortingMethod.Sort(); stopWatch.StopStopWatch(); stopWatch.GetTimeElapsed(nameOfSort); stopWatch.ResetStopWatch(); stopWatch.StartStopWatch(); sortingMethod.WriteSortList(); stopWatch.StartStopWatch(); stopWatch.GetTimeElapsed(nameOfSort + " To Write To File"); }