|
-
October 26th, 2005, 07:32 AM
#1
A thread problem...
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
-
October 26th, 2005, 07:49 AM
#2
-
October 26th, 2005, 07:50 AM
#3
Re: A thread problem...
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.
-
October 26th, 2005, 10:32 AM
#4
Re: A thread problem...
 Originally Posted by Marc G
you might get beter accuracy with multimedia timers.
But how do i replace this with sleep() function in a worker thread
regards
pradish
-
October 28th, 2005, 07:24 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|