Solved

measure a user’s reaction time

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

738 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