How to count time elapsed from the moment a popup appeared till it was clicked in javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1210701/compute-elapsed-time-in-javascript">compute elapsed time in JavaScript</a>  </p>
</blockquote>



<p>I am trying to construct a lexical decision task for my psychology project. </p>

<p>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. </p>

<p>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.</p>
