public class TestTimes extends java.lang.Object implements TestTimesInterface
| Modifier and Type | Field and Description |
|---|---|
private int |
index |
private long[] |
testTimes |
| Constructor and Description |
|---|
TestTimes() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestTime(long testTime)
This method is used to add a test time.
|
double |
getAverageTestTime()
This method is used to obtain the average test time.
|
long |
getLastTestTime()
This method is used to retrieve the last test time.
|
long[] |
getTestTimes()
This method returns an array of long values representing the last 10 test times.
|
void |
resetTestTimes()
This method is used to reset all 10 linear search times to zero.
|
public long getLastTestTime()
TestTimesInterfacegetLastTestTime in interface TestTimesInterfacepublic long[] getTestTimes()
TestTimesInterfacegetTestTimes in interface TestTimesInterfacepublic void resetTestTimes()
TestTimesInterfaceresetTestTimes in interface TestTimesInterfacepublic void addTestTime(long testTime)
TestTimesInterfaceaddTestTime in interface TestTimesInterfacetestTime - a long value representing the test time in nanoseconds.public double getAverageTestTime()
TestTimesInterfacegetAverageTestTime in interface TestTimesInterface