# Enable/Disable gateway timer using script

**URL:** <https://forum.inductiveautomation.com/t/enable-disable-gateway-timer-using-script/38164>\
**Category:** Ignition\
**Created:** [August 28, 2020, 1:43pm UTC](https://forum.inductiveautomation.com/t/enable-disable-gateway-timer-using-script/38164 "2020-08-28T13:43:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRAMANJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pramanj/32/66935_2.png) [@PRAMANJ](https://forum.inductiveautomation.com/u/PRAMANJ)\
**Post date:** [August 28, 2020, 1:43pm UTC](https://forum.inductiveautomation.com/t/enable-disable-gateway-timer-using-script/38164/1 "2020-08-28T13:43:06Z")

</div>

How can I Enable and Disable a 1 sec gateway timer and associated script thru script? I searched the forum but I could only find some discussion on timer in client. What's the over head if I keep it enabled (running) and skip/run the associated code based on a flag set by a script?

---

<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:** [August 28, 2020, 2:07pm UTC](https://forum.inductiveautomation.com/t/enable-disable-gateway-timer-using-script/38164/2 "2020-08-28T14:07:17Z")

</div>

> [@prafull\_j](#):
>
> skip/run the associated code based on a flag set by a script

That's what I do in such cases.
