I need to wait some time in one of my threads, I started to think about WaitForSingleObject
but it needs handles to wait on, although it can take a timeout input;
Another resolution may use SetTimer
but it seems that it will create WM_TIMER
message but I don't have change to catch that message since I am in a thread, so is there something I can use here ? can I use Sleep
?