C++ boost asynchronous timer to run in parallel with program
问题 Note: This is for C++98 I am trying to develop a simple timer/counter that runs in the background of my main program. I haven't used asynchronous timers before, and I have been trying to follow the boost tutorials on how to do this, but they still seem to block my main function. I've slightly modified Timer.3 from the boost website to experiment. Essentially, with the program below what I want to do is: Run main Execute testRun() which counts to 5 At the same time testRun() is counting, print