# How can i calculate execution time in node red?

**URL:** <https://discourse.nodered.org/t/how-can-i-calculate-execution-time-in-node-red/60208>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [22 March 2022 17:53 UTC](https://discourse.nodered.org/t/how-can-i-calculate-execution-time-in-node-red/60208 "2022-03-22T17:53:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fathi2022](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@Fathi2022](https://discourse.nodered.org/u/Fathi2022)\
**Post date:** [22 March 2022 17:53 UTC](https://discourse.nodered.org/t/how-can-i-calculate-execution-time-in-node-red/60208/1 "2022-03-22T17:53:33Z")

</div>

calculate the program speed (start and end )

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [22 March 2022 18:20 UTC](https://discourse.nodered.org/t/how-can-i-calculate-execution-time-in-node-red/60208/2 "2022-03-22T18:20:31Z")

</div>

Have a look at [node-red-contrib-msg-profiler](https://github.com/bartbutenaers/node-red-contrib-msg-profiler)  
It hasn't been published on npm, so to install it, run the following npm command in your Node-RED user directory (typically ~/.node-red):

```auto
npm install bartbutenaers/node-red-contrib-msg-profiler

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 March 2022 18:25 UTC](https://discourse.nodered.org/t/how-can-i-calculate-execution-time-in-node-red/60208/3 "2022-03-22T18:25:57Z")

</div>

And if you want something simple (a paste into your flow type addition) then there is this...

[https://flows.nodered.org/flow/63f29373e826a9fd4943d679d43e725f](https://flows.nodered.org/flow/63f29373e826a9fd4943d679d43e725f)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 May 2022 18:26 UTC](https://discourse.nodered.org/t/how-can-i-calculate-execution-time-in-node-red/60208/4 "2022-05-21T18:26:10Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
