On Saturday, 18 June 2016 at 01:20:16 UTC, Joerg Joergonson wrote:
Error: undefined identifier 'sleep', did you mean function 'Sleep'?

"import core.thread; sleep(10);"

It is `Thread.sleep(10.msecs)` or whatever time - `sleep` is a static member of the Thread class.


They mention to use PeekMessage and I don't see you doing that, not sure if it would change things though?

I am using MsgWaitForMultipleObjectsEx which blocks until something happens. That something can be a timer, input event, other message, or an I/O thing... it doesn't eat CPU unless *something* is happening.

Reply via email to