public class TestTimes extends java.lang.Object implements TesTimesInterface
| 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()
TesTimesInterfacegetLastTestTime in interface TesTimesInterfacepublic long[] getTestTimes()
TesTimesInterfacegetTestTimes in interface TesTimesInterfacepublic void resetTestTimes()
TesTimesInterfaceresetTestTimes in interface TesTimesInterfacepublic void addTestTime(long testTime)
TesTimesInterfaceaddTestTime in interface TesTimesInterfacetestTime - a long value representing the test time in nanoseconds.public double getAverageTestTime()
TesTimesInterfacegetAverageTestTime in interface TesTimesInterface