Elapsed Time on same flow

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

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

Regars

Hi David,

thanks for sharing your code!

By the way, I created the node-red-contrib-interval-length node to measure time intervals between messages (topic dependent or independent).

Kind regards,
Bart Butenaers

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

Regards