org.apache.jmeter.timers

## Class TimerService

- java.lang.Object
- - org.apache.jmeter.timers.TimerService

-     public class TimerService
      extends Object

  Manages logic related to timers and pauses
  Since:
    3.2

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `adjustDelay(long initialDelay)` Adjust delay so that initialDelay does not exceed end of test
    `long` | `adjustDelay(long initialDelay, long endTime)` Adjust delay so that initialDelay does not exceed end of test
    `static TimerService` | `getInstance()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static TimerService getInstance()

      Returns:
        ScriptEngineManager singleton

    - #### adjustDelay

          public long adjustDelay(long initialDelay)

      Adjust delay so that initialDelay does not exceed end of test
      Parameters:
        `initialDelay` - initial delay in millis
      Returns:
        initialDelay or adjusted delay

    - #### adjustDelay

          public long adjustDelay(long initialDelay,
                                  long endTime)

      Adjust delay so that initialDelay does not exceed end of test
      Parameters:
        `initialDelay` - initial delay in millis
        `endTime` - End time of JMeterThread
      Returns:
        initialDelay or adjusted delay

Copyright © 1998-2017 Apache Software Foundation. All Rights Reserved.