How to setup an accurate time interrupt in a PC windows so that I can run some other routines or procedure while I am waiting for an amount of time ( delay) needed by some other procedures inside my code ?!
Lets say that I have to set some command for an external hardware connected, for example, through the parallel port of the PC and after, lets say 10ms, I want to set another command and the 10ms should be as accurate as possible.
But, meanwhile, instead of being there waiting for 10ms I would like to be doing another stuffs, as for example, data logging data that I have received previously.
I am programming in C++.