# User Action Log with Time

**URL:** <https://forum.kirupa.com/t/user-action-log-with-time/265896>\
**Category:** flash\
**Created:** [July 14, 2008, 11:45am UTC](https://forum.kirupa.com/t/user-action-log-with-time/265896 "2008-07-14T11:45:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AVENYOU](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@AVENYOU](https://forum.kirupa.com/u/AVENYOU)\
**Post date:** [July 14, 2008, 11:45am UTC](https://forum.kirupa.com/t/user-action-log-with-time/265896/1 "2008-07-14T11:45:51Z")

</div>

Howdy:

Sure could use some advice. Working on a Advaned Cardiac Life Support simulator. Can’t figure out how to create a file that lists which mouse buttons the user clicked. Next to each click entry should be the time when clicked. ie:

Start CPR 00:05  
Establish IV 00:15  
20 mg Epine 00:40  
Stop CPR 00:55  
etc.

Simulator can be seen at [www.avenyou.com/ACLS](http://www.avenyou.com/ACLS)

Thanks for any suggestions.

Avenyou

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [July 14, 2008, 9:35pm UTC](https://forum.kirupa.com/t/user-action-log-with-time/265896/2 "2008-07-14T21:35:11Z")

</div>

Assuming that you have an `onPress` or similar handler on the different buttons, couldn’t you reference some array each time and add an element with the relevant info? `log.push([actionPerformed, getTimer()]);`
