I wrote the following script to measure the respondent's reaction time for each question. My question is how can I retrieve the reaction time?
Qualtrics.SurveyEngine.addOnload(function(){
var starttime = new Date().getTime();
var that = this;
this.hideNextButton();
this.questionclick = function(event,element){
if (element.type == 'radio') {
var endtime = new Date().getTime();
var reactiontime = endtime - starttime;
document.getElementById("QR~"+this.questionID).value = document.getElementById("QR~"+this.questionID).value + "X" + reactiontime + ",";
}
that.clickNextButton();
}
});