# Measure how long button (or clip!) is pressed for

**URL:** <https://forum.kirupa.com/t/measure-how-long-button-or-clip-is-pressed-for/97639>\
**Category:** Uncategorized\
**Created:** [December 26, 2003, 6:19pm UTC](https://forum.kirupa.com/t/measure-how-long-button-or-clip-is-pressed-for/97639 "2003-12-26T18:19:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecastro](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@joecastro](https://forum.kirupa.com/u/joecastro)\
**Post date:** [December 26, 2003, 6:19pm UTC](https://forum.kirupa.com/t/measure-how-long-button-or-clip-is-pressed-for/97639/1 "2003-12-26T18:19:35Z")

</div>

Does anybody know a simple way of measuring how long a button has been pressed for - had a look at gettimer but this seems to be an odd way of doing things - basically i want to say

onclick start timing -  
offclick end timing

var time = time button was pressed!

any ideas much appreciated… thanks - and if there is a simple solution (FOR ONCE!) that would be really cool!

measure how long button (or clip!) is pressed for
