[Gambas-user] Asking about a new Command

nando nando_f at ...1382...
Wed May 24 09:04:23 CEST 2006


Benoit,

I would like to know if it is possible to add a statement like:

DELAY      <--deliberately let the kernel use the CPU for other processes.
-or-
DELAY 0.5  <--let 1/2 second go by, processes no events and
not hog the CPU, deliberately let the kernel use the CPU for other processes.

It would be similar to WAIT except it would not process events.
It would simply keep the CPU from being tied up.

For example:

I need to wait a small amount of time inside a SUB, but I cannot
have events processed until the sub is completed.

I have tried using WAIT in both forms, but the events get processed
incorrectly.

Using a loop and looking at TIMER or TIME$ for the appropriate delay
only uses the CPU too much.  A DELAY would make it CPU friendlier.

Could this be done and what amount of time
do you think it would take so I could calculate a donation ?

-Fernando




More information about the User mailing list