# How to stop :timer

**URL:** <https://forum.elixirforum.com/t/how-to-stop-timer/48290>\
**Category:** Questions\
**Tags:** erlang, phoenix, liveview\
**Created:** [June 9, 2022, 7:51am UTC](https://forum.elixirforum.com/t/how-to-stop-timer/48290 "2022-06-09T07:51:53Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![rvirding](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/rvirding/32/1409_2.png) [@rvirding](https://forum.elixirforum.com/u/rvirding)\
**Post date:** [November 1, 2022, 8:57pm UTC](https://forum.elixirforum.com/t/how-to-stop-timer/48290/11 "2022-11-01T20:57:42Z")

</div>

I think it because the `:timer` module is old and maybe predates the timer functions in the `:erlang` module. Originally it was a server running which managed all the timer requests and kept track of when to send messages and to whom. Now it has been heavily optimised and itself uses the timer functions n the `:erlang` module when it can so it is generally less efficient than calling the function directly. That would be one reason why it is still used in many examples. Also some of the functions like `tc` need some wrapping to get the same results.

**EDIT:** What I meant to say is that using `:timer` is generally almost as efficient as calling the timer functions directly. There is only a very small difference.

---

_[View the full topic](https://forum.elixirforum.com/t/how-to-stop-timer/48290)._
