Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Measuring reaction time of the user.

Measuring reaction time of the user.

Scheduled Pinned Locked Moved C#
csharphtmlcomquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jakob Olsen
    wrote on last edited by
    #1

    Hi, I want to measure reaction times by playing a sound for the user, and the timing how long it takes for him to press space.... I just cant get it accurate enough. There is to much latency in the sound system, and the many message queues to make this work. I want it to be accurate within <10ms. Can this even be done in Windows using .NET ?? /Jakob

    ASCII tables, HTML entities, types, string formats and more info for the nerdy coder at: www.codecharts.com

    L 1 Reply Last reply
    0
    • J Jakob Olsen

      Hi, I want to measure reaction times by playing a sound for the user, and the timing how long it takes for him to press space.... I just cant get it accurate enough. There is to much latency in the sound system, and the many message queues to make this work. I want it to be accurate within <10ms. Can this even be done in Windows using .NET ?? /Jakob

      ASCII tables, HTML entities, types, string formats and more info for the nerdy coder at: www.codecharts.com

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Have you tried using the Stopwach[^] class? It uses a high resolution timer, if available on the system. regards

      J 1 Reply Last reply
      0
      • L Lost User

        Have you tried using the Stopwach[^] class? It uses a high resolution timer, if available on the system. regards

        J Offline
        J Offline
        Jakob Olsen
        wrote on last edited by
        #3

        That is the exact class i am using for the timing. It is highly accurate and that class is definetely not the problem. I know from a very accurate soundbased reaction time measuring device, that my reaction times are about twice as fast, and more consistent than the ones i measure using a SoundPlayer, StopWatch and a KeyDown event. I have the feeling that this is because of small delays everywhere in the system (Windows is not a RTOS), but i have no idea what to do about them.

        ASCII tables, HTML entities, types, string formats and more info for the nerdy coder at: www.codecharts.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups