Quote Originally Posted by 2kaud View Post
The easiest way is probably to sleep the thread for 50ms.
This only guarantees a lower limit. So there is a possibility that the process might sleep for longer and miss the next packet of data. Won't my idea work?