# Motoko Hearbeat frequency and example code

**URL:** <https://forum.dfinity.org/t/motoko-hearbeat-frequency-and-example-code/10385>\
**Category:** Language Support\
**Created:** [January 20, 2022, 9:06am UTC](https://forum.dfinity.org/t/motoko-hearbeat-frequency-and-example-code/10385 "2022-01-20T09:06:38Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [January 20, 2022, 6:56pm UTC](https://forum.dfinity.org/t/motoko-hearbeat-frequency-and-example-code/10385/8 "2022-01-20T18:56:51Z")

</div>

> [@Time - Docs and](https://forum.dfinity.org/t/time-docs-and/3058/5):
>
> I haven’t done a complete tear down of how the IC handles messages yet, so please correct me if I’m making poor assumptions. In eth all the nodes have to agree that a block is valid. There for the block has to provides some assumptions about what it used to calculated the message order and set of state changes. One of these things is the system time (now) that can be used in code and all messages in that block share a reference that value. It has to be greater than the time provided by the last…

---

_[View the full topic](https://forum.dfinity.org/t/motoko-hearbeat-frequency-and-example-code/10385)._
