I want to write a loop, and have it record the value of a variable at a specific interval, say, every minute without interfering with the loop. How can I do this? Is there something like setTimeout() in javascript, in C++?
Printable View
I want to write a loop, and have it record the value of a variable at a specific interval, say, every minute without interfering with the loop. How can I do this? Is there something like setTimeout() in javascript, in C++?
you could use a callback procedure with Settimer/Killtimer api's