# Timer script affecting CPU performance

**URL:** <https://forum.inductiveautomation.com/t/timer-script-affecting-cpu-performance/56760>\
**Category:** Ignition\
**Created:** [March 3, 2022, 4:50am UTC](https://forum.inductiveautomation.com/t/timer-script-affecting-cpu-performance/56760 "2022-03-03T04:50:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vani161998](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vani161998](https://forum.inductiveautomation.com/u/vani161998)\
**Post date:** [March 3, 2022, 4:50am UTC](https://forum.inductiveautomation.com/t/timer-script-affecting-cpu-performance/56760/1 "2022-03-03T04:50:46Z")

</div>

hi,  
i have a timer script which consumes 2% of CPU . what can do to improve the cpu peformance .should i change the script or any other thing?

thanks in advance

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 3, 2022, 12:53pm UTC](https://forum.inductiveautomation.com/t/timer-script-affecting-cpu-performance/56760/2 "2022-03-03T12:53:54Z")

</div>

Help us non-mind-readers out (so we can help you):

How often does the script run?

What is it doing?

How is it doing it?

Is it doing anything every time that could be done once and cached?

Have you collected any timing information to see how long different parts of the script take? (Using System.nanoTime(), hopefully).

Off the top of my head, I’d _guess_ you need to change your script.
