~ubuntu-branches/debian/squeeze/junitperf/squeeze

« back to all changes in this revision

Viewing changes to src/com/clarkware/junitperf/ConstantTimer.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2006-11-06 12:10:29 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20061106121029-0f8e7pzmig6sh1x5
Tags: 1.9.1-5
* built with java-gcj-compat-dev.
* debian/rules: 
  + removed ant-launcher.jar
  + removed the test target (closes: #396419)
* Standards-Version: 3.7.2 (no change)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package com.clarkware.junitperf;
 
2
 
 
3
/**
 
4
 * The <code>ConstantTimer</code> is a <code>Timer</code>
 
5
 * with a constant delay.
 
6
 * 
 
7
 * @author <b>Mike Clark</b>
 
8
 * @author Clarkware Consulting, Inc.
 
9
 *
 
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
}