Solved

measure a user’s reaction time

Posted on 2004-09-28
2
296 Views
Last Modified: 2013-11-15
I’m looking for something to measure a user’s reaction time. Say I had a yellow dot on the screen and when it changed to green the user would click on a button and display there reaction time to the change in this format 0.000 sec but if the user clicked before the dot changed to green the dot turns red.  
0
Comment
Question by:blnukem
  • 2
2 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 12168607
create a timer - countdown function which gets called when turns green, gets stopped on press of the thing, convert seconds to milliseconds.
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 12168807
if you need the code, it will be something along these lines

(if you choose to use the approach i described earlier)

on the root.
function callback() {
      valuer = valuer+1;
}
stop_btn.onRelease = function() {
      clearInterval(id);
      trace(valuer add " end");
      //convert
      toSec = valuer/1000;
      trace(toSec);
};

then, when it changes colour, //where it must start counting.
//note i'm assuming inside a movieclip thus the _root pathing.
//i'm using 1 as 1 millisecond, and there's 1000 milliseconds in 1 second (apparently).

_root.id = setInterval(_root.callback, 1);

and that's it.
the toSec part would give you seconds.milliseconds.

blu

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now