Solved

measure a user’s reaction time

Posted on 2004-09-28
2
303 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MSP multi use software 4 143
Determining Project Cost 1 92
Create animated movies for web page 18 118
Best way to encrypt a xls file 8 15
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

685 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