In my domready function call I make calls to new Date().getTime(), in separate event handlers (ie one for the first keyup on a form's fields and one when the form is submitted). I do this with the intention of finding out how long a user takes to fill out a form.
But when I store the two separate values in hidden form fields and submit to server, on server both have the same value. I assumed calling new Date().getTime() would get me the current time in millis as at the call time to the method and not the load time as seems to be happening here (thus both values same due to both being loaded on domready event) How can I get current time as at the time new Date().getTime() is called?
