Hi all
How can we make the Sleep(milliseconds) function to be more
accurate.i:e if it is Sleep(500), The Thread should wakeup exactly after
500ms. I need this to be implemented in workerthread.
Your valueable suggestions are welcome.
regards
pradish
Printable View
Hi all
How can we make the Sleep(milliseconds) function to be more
accurate.i:e if it is Sleep(500), The Thread should wakeup exactly after
500ms. I need this to be implemented in workerthread.
Your valueable suggestions are welcome.
regards
pradish
[ Redirected thread ]
The Sleep function is never really accurate. Windows is not a realtime operating system. However, you might get beter accuracy with multimedia timers. Do a search for them on codeguru or google.
But how do i replace this with sleep() function in a worker threadQuote:
Originally Posted by Marc G
regards
pradish
Take a look at the Multimedia Timers SDK documentation.