|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjmunit.framework.cldc11.TimedMeasurement
public class TimedMeasurement
The TimedMeasurement class monitors the running time of a test. A test fails if it takes too long to run.
| Constructor Summary | |
|---|---|
TimedMeasurement(long maxRunningTime)
Constructor. |
|
TimedMeasurement(long maxRunningTime,
int clockResolution)
Constructor that allows the clock resolution to be specified. |
|
| Method Summary | |
|---|---|
void |
endMeasurement()
Ends monitoring. |
void |
startMeasurement()
Starts monitoring. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimedMeasurement(long maxRunningTime)
maxRunningTime - The maximum allowed running time for the test (in
milliseconds).
public TimedMeasurement(long maxRunningTime,
int clockResolution)
maxRunningTime - The maximum allowed running time for the test (in
milliseconds).clockResolution - The uncertainty associated with the system clock (in
milliseconds).| Method Detail |
|---|
public void startMeasurement()
startMeasurement in interface PerformanceMeasurementpublic void endMeasurement()
endMeasurement in interface PerformanceMeasurement
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||