How-to create timer in its own thread? (& other stuff)

  • Thread starter Thread starter sloan
  • Start date Start date
Hi,

1)
I want to create a master clock that runs in its own thread. I can't
figure out how to do this. The best that I've come-up with is to start
the clock(timer) in the main thread and signal a callback in a separate
thread on each tick?

2) The task I want to accomplish is to have a master clock running at a
base resolution and have other clocks running at multiples of this

eg:
Master clock:
MClock = 1msec

Slave clocks:
m100 = 100 msecs,
m1sec = 1 sec, etc.

My current approach is probably barking up the wrong tree? Anyone tune
the bark or point to a different tree?!. Thanks, Matt.
 
Back
Top