# Elapsed Time on same flow

**URL:** https://discourse.nodered.org/t/elapsed-time-on-same-flow/541
**Category:** Share Your Projects
**Created:** [2 June 2018 04:31 UTC](https://discourse.nodered.org/t/elapsed-time-on-same-flow/541 "2018-06-02T04:31:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)
#### Post date: [2 June 2018 04:31 UTC](https://discourse.nodered.org/t/elapsed-time-on-same-flow/541/1 "2018-06-02T04:31:32Z")

</div>

Well I don’t know if this is the correct place as this is not about a node just a function t count elapsed time between messages received what for me was some frequent utility not available on palette and not able to find on available extra nodes so finally decided to take the exercise to do it.

You can find all details at: [https://gist.github.com/davidcgu/962f26944542a8c1fd929b330f2c0bd2](https://gist.github.com/davidcgu/962f26944542a8c1fd929b330f2c0bd2)

Apologies in advance if this is not the proper place for the post…

Regars

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [3 June 2018 06:35 UTC](https://discourse.nodered.org/t/elapsed-time-on-same-flow/541/2 "2018-06-03T06:35:04Z")

</div>

Hi David,

thanks for sharing your code!

By the way, I created the [node-red-contrib-interval-length](https://github.com/bartbutenaers/node-red-contrib-interval-length) node to measure time intervals between messages (topic dependent or independent).

Kind regards,  
Bart Butenaers

---

<div class="post-metadata">

### Author: ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)
#### Post date: [3 June 2018 12:34 UTC](https://discourse.nodered.org/t/elapsed-time-on-same-flow/541/3 "2018-06-03T12:34:56Z")

</div>

Thanks Bart, good job I think this utility was a goood one missing on palette,I will take a look.

Regards
