# with asLongAs - can i get the total time it took in the gatling report?

**URL:** <https://community.gatling.io/t/with-aslongas-can-i-get-the-total-time-it-took-in-the-gatling-report/2568>\
**Category:** Gatling (Open-Source)\
**Created:** [September 30, 2015, 6:15pm UTC](https://community.gatling.io/t/with-aslongas-can-i-get-the-total-time-it-took-in-the-gatling-report/2568 "2015-09-30T18:15:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Figuerno](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@Figuerno](https://community.gatling.io/u/Figuerno)\
**Post date:** [September 30, 2015, 6:15pm UTC](https://community.gatling.io/t/with-aslongas-can-i-get-the-total-time-it-took-in-the-gatling-report/2568/1 "2015-09-30T18:15:02Z")

</div>

Hi

I have something like this in my script

```auto
 .asLongAs(session => session("status").as[String] != "done"){
  exec(http("5 loop until done")
    .get("/isitdone")
    .check(jsonPath("$.status").saveAs("status"))
  )
}

```

```auto

```

```auto

```

```auto
In the gatling report, it doesn't give me a total time that asLongAs took. Is there a way to get that listed? 

```

```auto

```

```auto
Thanks

```

---

<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:** [February 3, 2016, 10:29pm UTC](https://community.gatling.io/t/with-aslongas-can-i-get-the-total-time-it-took-in-the-gatling-report/2568/2 "2016-02-03T22:29:41Z")

</div>

Wrap in a group

---

<div class="post-metadata">

**Author:** ![Figuerno](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@Figuerno](https://community.gatling.io/u/Figuerno)\
**Post date:** [February 4, 2016, 12:12am UTC](https://community.gatling.io/t/with-aslongas-can-i-get-the-total-time-it-took-in-the-gatling-report/2568/3 "2016-02-04T00:12:47Z")

</div>

Sweet! thank you. Did not know about that feature.
