Gather execution time of several request to one value

I have an asynchronius process and I want to gather performance statics of it.
I wrote the code which waits async process:

.asLongAs(session => !session.contains(“cartStatus”) || session(“cartStatus”).as[String] != “CALCULATED”) {

    http("get cart")
      .header("Accept", "application/json")
      .header("Content-Type", "application/x-www-form-urlencoded")

I want to see time of performing asLongAs loop at the report, but currently I see time of each "get cart" call.

Is there any way to do this? 


Thanks Stéphane for your answer. It almost solved my problem. Currently it calculates time of requests only. How can I add time of pauses to the statistics?

I can help with that.

In the gatling.conf file try changing this setting

useGroupDurationMetric = true  # Switch group timings from cumulated response time to group duration.

That solved my issue. Thanks you