Dear all,
I am now writing an app with otree for an online experiment that I need to record response time. We now use Heroku as server and plan to implement the experiment on Amazon Turk. I face some issues that I hope to get help with.
1. I am now using the difference of two timestamps to record the response time on the client side. Since we hope the accuracy of response time is at the level of milisecond. I am not quite sure if there exists any possible delay getting timestamp from client to server. To be specific, I want to make sure even if there exists a latency, will the latency be equal in each timestamp or not.
2. I did a test using the Heroku server for my app. I found that if the subject close the Web Browser during the experiment, the time record function will still work even browser is closed. As they reopen the browser, the timestamp will add on the duration when they are not in the task. which will lead to an extra longer and wrong response time.
I am wondering if there is any way I can avoid this problem through coding.
Thank you very much in advance for your help.
Sincerely,
Wei-ming