Re: Visual Basic timer help
Quote:
Originally posted by ZF_NeAlvey
Hey guys. I asked this once before and never really figured anything out. I thought I had gotten out of doing this, but my friend called me today looking for his program. So here it goes.
My friend is a chiropractor and he needs a program to time reflexes. What he wants is for the screen to change color, then the user hit spacebar as fast as he/she can and then record the time it took to do so. I need to record the time down to the thousandths (.999). The timer in VB only does the hundredths (.99) and I hear isn't the most accurate thing in the world. Is there a way to get it down to the thousandths? Someone gave me a link to another VB timer but it was very confusing and I did not get it to work at all. Any help would be great!!!!!! Thanks!
Here is the program:
User sits at screen. :)
Screen changes from blue screen to green screen...counter starts
User hits spacebar as soon as he/she sees the green screen
When spacebar hit, counter stops.
Output info.
Neal
Something like this would be easy. Look up the 'GetTickCount' windows API procedure in the API viewer. It returns the number of milliseconds elapsed since Windows last started, and its as accurate as your computer can be!
I could have source code for such a program posted in 15 minutes or less easily!