# Message times and when they are shown

**URL:** <https://discourse.nodered.org/t/message-times-and-when-they-are-shown/31039>\
**Category:** General\
**Created:** [2 August 2020 06:33 UTC](https://discourse.nodered.org/t/message-times-and-when-they-are-shown/31039 "2020-08-02T06:33:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [2 August 2020 06:33 UTC](https://discourse.nodered.org/t/message-times-and-when-they-are-shown/31039/1 "2020-08-02T06:33:13Z")

</div>

I know NR is async' but this is weird.

I am starting to build my flow for my new project.

I am writing it in blocks so as to help keep things understandable.

I am using `link` nodes to represent inputs from buttons. As the code will be written else where it seems practical doing it this way.

So the _problem_:  
I press an `inject` node to simulate a button being pressed.  
The flow is split. One goes to a `link` node and the other goes to a `change` node.  
The `link` goes to another `link` higher on the screen, and then also goes into a `change` node. That sets `msg.payload` to `CLS` and that is _Send to display_.  
Back to the second branch: that goes to a `change` node which loads an object into the payload and that is .... _send to the display_.

This machine is a Nuc with memory and CPU to spare.  
I am not getting why there is such a lag with the messages getting through.

The _red_ is the first part. The _blue_ is the second part. The blue message arrives at `16`. The red message at `27`. That's **eleven** seconds! and it is doing less than the blue message.

 ![Screenshot from 2020-08-02 16-22-53](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/a/eaeda7542c0b5de6ae62796189a46f5cb48cfec1.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 August 2020 07:31 UTC](https://discourse.nodered.org/t/message-times-and-when-they-are-shown/31039/2 "2020-08-02T07:31:31Z")

</div>

Add named debug nodes at each intermediate point and see what the times are, then you will know where the delay is.

---

<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:** [1 October 2020 07:31 UTC](https://discourse.nodered.org/t/message-times-and-when-they-are-shown/31039/3 "2020-10-01T07:31:40Z")

</div>

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