Timer in its own thread


O

Olivier

Hi,

I'm trying to build a small lap timer app.
A timer would be used for the general race timing.
A timer would be used for the general race remaining timing.
A timer for lap timing.
A timer for pitstop timing.

As every pit stop requires some data logging, I think I'll want to use the lap timer and the pit timer in their own threads... a challenge.
Unable to use a timer in a new thread.

Would someone have any tip ?

PS : The same app in VB6 makes my general timer be 25 minutes late on the PC clock after a 24 hours race...

TIA,

Olivier.
 
Ad

Advertisements

G

Guest

Are you using external triggers?
What time resolution do you need, 0.5 seconds or 1millisecond?

You can use the high performance counter to get microsecond time, but
triggering it from the keyboard or mouse is where you'll lose your
accuracy.

There isn't any reason why you can't do this in VB6.
 
Ad

Advertisements

O

Olivier

I need 1 sec accuracy.
Keyboard is the trigger.

As I told you, running 4 timers, I/O operations after pit stop timer makes
me lose 25 minute on a 24 H race.

Olivier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top