The suspend() function posted in the "waiting for x milliseconds" could be easily adapted to use seconds as a parameter. I found it nescessary to use that function in my application when one similar to the one you suggest pushed my processor usage to 100%.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.