User Action Log with Time

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

Thanks for any suggestions.

Avenyou

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()]);