Function 23 - wait for event with timeout.
If the message queue is empty, waits for new message in the queue,
but no more than given time. Then reads out a message from the queue.
Parameters:
- eax = 23 - function number
- ebx = timeout (in 1/100 of second)
Returned value:
Remarks:
- Only those events are taken into account, which enter into
the mask set by function 40. By default it is
redraw, key and button events.
- To check for presence of a message in the queue use function 11.
To wait without timeout use function 10.
- Transmission ebx=0 results in immediate returning eax=0.
- Current implementation returns immediately with eax=0,
if the addition of ebx with the current value of time counter
makes 32-bit overflow.