# Can you create a Gaussian timer

**URL:** https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431
**Category:** Gatling (Open-Source)
**Created:** [December 15, 2022, 1:33pm UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431 "2022-12-15T13:33:16Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ciaranbrowne](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@ciaranbrowne](https://community.gatling.io/u/ciaranbrowne)
#### Post date: [December 15, 2022, 1:33pm UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/1 "2022-12-15T13:33:16Z")

</div>

hihi,

Is it possible to implement a Gaussian Timer? I see there is a io.gatling.javaapi.core.CoreDsl.normalPausesWithStdDevDuration(Duration). Is this sufficient at the Simulation level to implement a Gaussian timer or do you need to add a pause(min, max) at each of the scenario/API call level.

Regards,  
Ciaran

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [December 15, 2022, 1:36pm UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/2 "2022-12-15T13:36:39Z")

</div>

Gaussian is another name for normal distributions, so yes, use `normalPausesWithStdDevDuration`.

---

<div class="post-metadata">

### Author: ![ciaranbrowne](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@ciaranbrowne](https://community.gatling.io/u/ciaranbrowne)
#### Post date: [December 15, 2022, 3:22pm UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/3 "2022-12-15T15:22:40Z")

</div>

Thanks Stephane. Is only normalPausesWithStdDevDuration required? No extra pauses?  
Ciaran

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [December 16, 2022, 7:10pm UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/4 "2022-12-16T19:10:17Z")

</div>

Sorry, I don’t understand the question.

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [December 16, 2022, 9:48pm UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/5 "2022-12-16T21:48:08Z")

</div>

I realized some shortcuts for normal pauses were missing, see [Core: shortcuts for normal pauses configuration are missing from setUp · Issue #4365 · gatling/gatling · GitHub](https://github.com/gatling/gatling/issues/4365)

---

<div class="post-metadata">

### Author: ![ciaranbrowne](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@ciaranbrowne](https://community.gatling.io/u/ciaranbrowne)
#### Post date: [December 20, 2022, 9:34am UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/6 "2022-12-20T09:34:37Z")

</div>

Hi Stephane, how are you?  
Other than _normalPausesWithStdDevDuration_ (at the Simulation set-up level), do I need to add any other pauses (lower down at the Scenario level)? In the Gatling [documentation](https://gatling.io/docs/gatling/reference/current/core/simulation/#global-pause-configuration), it describes normalPausesWithStdDevDuration as ```  
// make pauses follow a normal distribution  
// where the mean is the value specified in the `pause(duration)` element.  
// and the standard deviation is the duration configured here.

```auto
Is pause(duration) defined at the Scenario level?

Regards,
Ciaran
```

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [December 20, 2022, 10:10am UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/7 "2022-12-20T10:10:27Z")

</div>

The pause configuration defined at setUp level only tunes the behavior of the pauses defined in the scenarios. It doesn’t add any pauses in the scenario.

---

<div class="post-metadata">

### Author: ![sbrevet](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/sbrevet/32/830_2.png) [@sbrevet](https://community.gatling.io/u/sbrevet)
#### Post date: [December 22, 2022, 7:28pm UTC](https://community.gatling.io/t/can-you-create-a-gaussian-timer/7431/8 "2022-12-22T19:28:47Z")

</div>


