java.lang.ObjectSearchTimer
public class SearchTimer
A class that times the execution of various searching algorithms
Constructor Summary | |
---|---|
SearchTimer()
Builds a SortTimer |
Method Summary | |
---|---|
long |
timeSearch(Searcher searcher,
int[] arr,
int target,
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 SearchTimer()
Method Detail |
---|
public long timeSearch(Searcher searcher, int[] arr, int target, int numTimes)
sorter
- what to use for sortingarr
- the array to sortnumTimes
- how many times to sort the data