com.clarkware.junitperf
public class RandomTimer extends Object implements Timer
RandomTimer is a Timer
with a random delay and a uniformly distributed variation.
See Also: 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.
|
RandomTimer with the
specified minimum delay and variation.
Parameters: delay Minimum delay (ms). variation Variation (ms).
Returns: Delay (ms).