I'm building a dot probe task (people have to react quickly to a dot after an image disappears) and we need to measure reaction times and show stimuli for pre-defined intervals for usage in an online therapy study.
We already decided on Javascript and we're willing to impose some constraints on users, i.e. ruling out IE etc. We can't ban Windows completely though.
I read John Resig's post on the topic and according to this we'll have to ban every browser on Windows except Firefox and Chrome.
In addition this answer advises using console.time();
as best-practice for FF and Chrome.
I have some follow-up questions, considering that Resig's post is 4 years old now and that the question above is about measuring function execution time (that means the execution of code skewing the timer is good, not bad as in our case) and not about a reaction time study.
The following similar question just asked for the "best web language" and only received the blanket recommendation to use JS (which is what a couple of published studies have done, but they don't publish technical details).
- Can we somehow use the better accuracy of
console.time()
where available? I think not, because it only returns to the console, i.e. it can't be captured in a variable. - Have there been any significant changes to timing accuracy in the last 4 years? I'm comfortable banning IE for many reasons, but maybe things have changed for Safari and Opera on Windows?
- Should I use a second method that ties into the execution process to get another set of times for comparison / cross-validation?