[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

measure a user’s reaction time

Posted on 2004-09-28
2
Medium Priority
?
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

656 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