# Is millis() heavy on CPU program efficiency?

**URL:** <https://discourse.processing.org/t/is-millis-heavy-on-cpu-program-efficiency/23266>\
**Category:** p5.js\
**Created:** [August 14, 2020, 11:01pm UTC](https://discourse.processing.org/t/is-millis-heavy-on-cpu-program-efficiency/23266 "2020-08-14T23:01:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mnoble](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnoble/32/99_2.png) [@mnoble](https://discourse.processing.org/u/mnoble)\
**Post date:** [September 21, 2020, 4:28pm UTC](https://discourse.processing.org/t/is-millis-heavy-on-cpu-program-efficiency/23266/7 "2020-09-21T16:28:57Z")

</div>

Hi GoToLoop,

This solution is a little over my heard 🙂 Is this something I could use on OpenProcessing with p5Js to solve this problem:

> [@Timers Not Frame Rate Dependent & Starting On Demand - Oh Please Oh Please slight\_smile](https://discourse.processing.org/t/timers-not-frame-rate-dependent-starting-on-demand-oh-please-oh-please/23994):
>
> Hello Forum, I am making interactive visualizers that coordinate with sequenced visual automations and sound. I need to start a timer after a button is pushed (which I am pretty sure you can’t do with millis()) and I can’t use the frameCount() solution because I have just learned that computers vs. phones vs. tablets all have the possibility of different frame rates (30,60, even 120 sometimes) - animation timings will be out of sync for several devices. I have witnessed timings play out really…

---

_[View the full topic](https://discourse.processing.org/t/is-millis-heavy-on-cpu-program-efficiency/23266)._
