java.lang.ObjectSortTimer
public class SortTimer
Write a description of class SortTimer here.
Constructor Summary | |
---|---|
SortTimer()
Builds a SortTimer |
Method Summary | |
---|---|
long |
timeSort(Sorter sorter,
int[] arr,
int numTimes)
Times how long it takes to sort the array the given number of times using the provided sorter object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortTimer()
Method Detail |
---|
public long timeSort(Sorter sorter, int[] arr, int numTimes)
sorter
- what to use for sortingarr
- the array to sortnumTimes
- how many times to sort the data