Possible Duplicate:
compute elapsed time in JavaScript
I am trying to construct a lexical decision task for my psychology project.
The task is in javascript: a popup with a word appears and a user clicks yes or no depending on whether the word is grammatical.
I need to count the time between the appearance of the popup and the user click. Could you tell em what needs to be done.