# A timer for alarm

**URL:** <https://forum.inductiveautomation.com/t/a-timer-for-alarm/58278>\
**Category:** Ignition\
**Created:** [April 11, 2022, 9:33am UTC](https://forum.inductiveautomation.com/t/a-timer-for-alarm/58278 "2022-04-11T09:33:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Conn\_Mccurdy](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@Conn\_Mccurdy](https://forum.inductiveautomation.com/u/Conn_Mccurdy)\
**Post date:** [April 11, 2022, 9:33am UTC](https://forum.inductiveautomation.com/t/a-timer-for-alarm/58278/1 "2022-04-11T09:33:17Z")

</div>

I am trying to have a digital display count up in seconds and minutes to show how long an alarm is on for but I don’t know how to go about it.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [April 11, 2022, 11:54am UTC](https://forum.inductiveautomation.com/t/a-timer-for-alarm/58278/2 "2022-04-11T11:54:02Z")

</div>

Is it a specific alarm? Or any alarm in the system?

If its specific, you should be able to grab the [‘ActiveTime’ value](https://docs.inductiveautomation.com/display/DOC81/Tag+Alarm+Properties) from the tag creating the alarm and do an expression like the following to calculate the time either in an expression tag, or on the binding to your component

```auto
secondsBetween({[default]TestTag/Alarms/Alarm.ActiveTime},now(1000))

```

Didn’t test this, and obviously don’t have the exact path to your value, but should at least get you close.
