# Heartbeat improvements / Timers \[Community Consideration\]

**URL:** <https://forum.dfinity.org/t/heartbeat-improvements-timers-community-consideration/14201>\
**Category:** Developers\
**Tags:** community-consideration\
**Created:** [July 7, 2022, 1:51pm UTC](https://forum.dfinity.org/t/heartbeat-improvements-timers-community-consideration/14201 "2022-07-07T13:51:03Z")\
**Posts on this page:** 3\
**Page:** 8

<div class="post-metadata">

**Author:** ![NS01](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ns01/32/9816_2.png) [@NS01](https://forum.dfinity.org/u/NS01)\
**Post date:** [August 21, 2023, 8:47am UTC](https://forum.dfinity.org/t/heartbeat-improvements-timers-community-consideration/14201/146 "2023-08-21T08:47:50Z")

</div>

Quick question - Does setting or cancelling a timer have a cycles cost? I’m aware that the timer calling it’s task does.

---

<div class="post-metadata">

**Author:** ![berestovskyy](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/berestovskyy/32/3989_2.png) [@berestovskyy](https://forum.dfinity.org/u/berestovskyy)\
**Post date:** [August 21, 2023, 1:29pm UTC](https://forum.dfinity.org/t/heartbeat-improvements-timers-community-consideration/14201/147 "2023-08-21T13:29:29Z")

</div>

There is no fee associated with timer setting/cancelling. It’s rather is a normal Canister execution (there are libraries for Motoko and Rust), so each library call takes some (rather tiny) amount of Instructions.

The precise number of Instructions depend on the language, library version, compilation options etc. There is a performance counter to measure precisely the number of Instructions consumed by a Canister code snippet.

Note, there is an update message execution fee on IC, which is 590K cycles, and timer execution is an update message. But setting/cancelling the timer is just a few Instructions, there is no fee for that…

Here is the list of the IC fees for the reference: [Internet Computer Loading](https://internetcomputer.org/docs/current/developer-docs/gas-cost)

---

<div class="post-metadata">

**Author:** ![ggreif](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ggreif/32/301_2.png) [@ggreif](https://forum.dfinity.org/u/ggreif)\
**Post date:** [October 17, 2024, 11:10pm UTC](https://forum.dfinity.org/t/heartbeat-improvements-timers-community-consideration/14201/148 "2024-10-17T23:10:33Z")

</div>

`moc` 0.13.2 should fix this.

```motoko
setTimer<system>(..., init);

```

should work now even if `init` references `this`.

[Previous page](https://forum.dfinity.org/t/heartbeat-improvements-timers-community-consideration/14201.md?page=7)
