Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Running Race Time Display in VB6 Program

What is the best way to have a timer displaying the running time of a race (or several races) in vb6.  Let's say that one race started at precisely 8:00:00 AM and a second race started at 8:14:56 AM.  I would like a display on our results page that continually shows the elapsed time of each race (h:mm:ss would be fine).  I could use a quick blurb of pseudo-code if anyone has the time.  I could figure this out but I want it to be as "efficient" a utility as possible because results and other functionality will be occurring throughout the duration of the event.

Thanks in advance!!
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Schneider

ASKER

Very cool!  Thank you very much!!
Exactly what I needed!
Depending on how much else goes on in your application, the Timer may not be the best way to go. See my article on "How to time code" for other timing methods.

In any case you’re welcome and I’m glad I was able to help.

If you expand the “Full Biography" section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2018
              Experts Exchange Top Expert VBA 2018
              Experts Exchange Distinguished Expert in Excel 2018