01: package com.clarkware.junitperf;
02:
03: /**
04: * The <code>ConstantTimer</code> is a <code>Timer</code>
05: * with a constant delay.
06: *
07: * @author <b>Mike Clark</b>
08: * @author Clarkware Consulting, Inc.
09: *
10: * @see com.clarkware.junitperf.Timer
11: */
12:
13: public class ConstantTimer implements Timer {
14:
15: private final long delay;
16:
17: /**
18: * Constructs a <code>ConstantTimer</code> with the
19: * specified delay.
20: *
21: * @param delay Delay (in milliseconds).
22: */
23: public ConstantTimer(long delay) {
24: this .delay = delay;
25: }
26:
27: /**
28: * Returns the timer delay.
29: *
30: * @return Delay (in milliseconds).
31: */
32: public long getDelay() {
33: return delay;
34: }
35: }
|