Stopwatch Program

leptictidium
09-08-2009, 06:51 PM
This should be really simple, but I am for some reason running into problems making a stopwatch program. It looked like it was working, but when I compared it to an actual stopwatch, they didn't match. Anyway, I need a stopwatch program that displays hours,minutes,seconds,tenths of seconds, and hundredths of seconds. I have a label called label1. I have a timer called timer1. I have a button called cmdStart and another button called cmdStop. Can someone please help? I am pretty sure this is very very easy, but my mind has run into a road block for some strange unknown reason.....

vb5prgrmr
09-08-2009, 09:51 PM
Some API's to look up...

QueryPerformanceCounter and QueryPerformanceFrequency.

Look this up with your friends (yahoo/google) to find examples...



Good Luck

Samapico
09-10-2009, 08:36 AM
GetTickCount should be accurate enough for you

example here
http://www.vbforums.com/showthread.php?t=231183

Cerian Knight
09-19-2009, 04:50 PM
See attachment here: http://www.xtremevbtalk.com/showpost.php?p=1180731&postcount=3

leptictidium
09-19-2009, 05:09 PM
I have it working!:)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum