# Conting time since button is pressed

**URL:** <https://forum.kirupa.com/t/conting-time-since-button-is-pressed/194572>\
**Category:** flash\
**Created:** [July 24, 2006, 6:02pm UTC](https://forum.kirupa.com/t/conting-time-since-button-is-pressed/194572 "2006-07-24T18:02:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [July 24, 2006, 6:02pm UTC](https://forum.kirupa.com/t/conting-time-since-button-is-pressed/194572/1 "2006-07-24T18:02:45Z")

</div>

I was thinking about using the getTimer() action for counting the time, but what I need is to count the time since a button is pressed. when the counter get to a determed number, it should go back to zero and start counting again when the button is pressed again.

how can I do this? is there a way?
