# How to use Pause (normalPausesWithPercentageDuration) in gatling?

**URL:** https://community.gatling.io/t/how-to-use-pause-normalpauseswithpercentageduration-in-gatling/3854
**Category:** Gatling (Open-Source)
**Created:** [July 27, 2017, 12:46pm UTC](https://community.gatling.io/t/how-to-use-pause-normalpauseswithpercentageduration-in-gatling/3854 "2017-07-27T12:46:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://community.gatling.io/u/Peter)
#### Post date: [July 27, 2017, 12:46pm UTC](https://community.gatling.io/t/how-to-use-pause-normalpauseswithpercentageduration-in-gatling/3854/1 "2017-07-27T12:46:58Z")

</div>

I want to use `normalPausesWithPercentageDuration` **where do I declare it and use it** in my gatling script. Any examples how to use it will be more helpful? Thank you.

```auto
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._

class temp extends Simulation {

    val httpProtocol = http
        .baseURL(testServerUrl)

    val scn = scenario("Test data")
        .feed(csvFeeder)
        .exec(http("My Request")
            .get("""/api/xyz/${ID}""")
            )

        .normalPausesWithPercentageDuration(2) // This is not working

    setUp(scn.inject(constantUsersPerSec(userCount) during(duration minutes))).protocols(httpProtocol)

}   

```

---

<div class="post-metadata">

### Author: ![Michal\_Kusy](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Michal\_Kusy](https://community.gatling.io/u/Michal_Kusy)
#### Post date: [February 9, 2018, 11:48am UTC](https://community.gatling.io/t/how-to-use-pause-normalpauseswithpercentageduration-in-gatling/3854/2 "2018-02-09T11:48:45Z")

</div>

Hi Peter,

I stumbled about your question today when I was investigating same issue. I guess you already solved it somehow.

So for future readers:

At the moment ScenarioSetup class does not have method normalPausesWithPercentageDuration, but you can pass your pause type through pauses method as shown below.

setUp(  
…  
).pauses(normalPausesWithPercentageDuration(0.30))

Dne čtvrtek 27. července 2017 14:46:59 UTC+2 Peter napsal(a):
