# Pacing

**URL:** <https://community.gatling.io/t/pacing/6100>\
**Category:** Gatling (Open-Source)\
**Created:** [May 18, 2021, 8:46am UTC](https://community.gatling.io/t/pacing/6100 "2021-05-18T08:46:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudha\_Sathya](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Sudha\_Sathya](https://community.gatling.io/u/Sudha_Sathya)\
**Post date:** [May 18, 2021, 8:46am UTC](https://community.gatling.io/t/pacing/6100/1 "2021-05-18T08:46:54Z")

</div>

Hi All,

I am just a beginner and started using Gatling recently. This is my scala file. My requirement is after each hit/request there should be a pacing of 3 seconds. Can one help me how and where to implement it in the below listed scala file.

class CreditSimulation extends Simulation {  
val apis = karateProtocol( )  
apis.nameResolver = (req, ctx) =\> req.getHeader(“karate-name”)

val RCustomer = scenario(“DebtBalance”).forever(){ feed(csv(“data/DebtBalance.csv”).batch.circular) .exec(karateFeature(PathFinder.getPath(“credit/DebtBalance.feature”)))}

setUp(RCustomer.inject(rampUsers(5) during(10 seconds)).protocols(apis)) .maxDuration(duration = 20 seconds) .assertions(global.successfulRequests.percent.gt(95))  
}

---

<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:** [May 18, 2021, 9:07am UTC](https://community.gatling.io/t/pacing/6100/2 "2021-05-18T09:07:44Z")

</div>

Hi and welcome!

Have you checked the documentation?

I think [pause](https://gatling.io/docs/current/general/scenario/#scenario-pause) and [pace](https://gatling.io/docs/current/general/scenario/#pace) may help in your case.

Cheers!
