using throttling

When I use throttling, am I suppose to add the units of time? or is the default as noted below ?

setUp(…).throttle(
reachRps(100) in (10 seconds),
holdFor(1 minute),
jumpToRps(50),
holdFor(2 hours)
)

my example:

 setUp(

    scn.inject(atOnceUsers(200)).throttle(
      reachRps(5) in(10),
      holdFor(10),
      jumpToRps(50),
      holdFor(20)
    )

  ).protocols(httpProtocol)

}

All durations in Gatling default to seconds if you don’t specify a TimeUnit: http://gatling.io/docs/2.1.5/quickstart.html?highlight=unit#gatling-scenario-explained

Hi,

The default time unit is the second so you need to specify it whenever you want to express durationr in another unit than the second.

If I try to change the sec to minutes my script file does not compile
something like below

setUp(

  scn.inject(atOnceUsers(200)).throttle(
    reachRps(5) in(10 minutes),
    holdFor(10 minutes),
    jumpToRps(50),
    holdFor(20)
  )

).protocols(httpProtocol)