# Timing code execution

**URL:** <https://forum.elixirforum.com/t/timing-code-execution/36286>\
**Category:** Questions\
**Tags:** datetime\
**Created:** [December 17, 2020, 10:12am UTC](https://forum.elixirforum.com/t/timing-code-execution/36286 "2020-12-17T10:12:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tcoopman](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/tcoopman/32/8112_2.png) [@tcoopman](https://forum.elixirforum.com/u/tcoopman)\
**Post date:** [December 17, 2020, 10:26am UTC](https://forum.elixirforum.com/t/timing-code-execution/36286/2 "2020-12-17T10:26:12Z")

</div>

If you want to do a micro benchmark (measure how long a function takes), doing one run of the function is not enough.  
You can take a look at [GitHub - bencheeorg/benchee: Easy and extensible benchmarking in Elixir providing you with lots of statistics! · GitHub](https://github.com/bencheeorg/benchee) to run microbenchmarks.

---

_[View the full topic](https://forum.elixirforum.com/t/timing-code-execution/36286)._
