|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkware.junitperf.RandomTimer
public class RandomTimer
The RandomTimer
is a Timer
with a random delay and a uniformly distributed variation.
Timer
Constructor Summary | |
---|---|
RandomTimer(long delay,
double variation)
Constructs a RandomTimer with the
specified minimum delay and variation. |
Method Summary | |
---|---|
long |
getDelay()
Returns the timer delay. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomTimer(long delay, double variation)
RandomTimer
with the
specified minimum delay and variation.
delay
- Minimum delay (ms).variation
- Variation (ms).Method Detail |
---|
public long getDelay()
getDelay
in interface Timer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |