[Gambas-user] Asking about a new Command
Benoit Minisini
gambas at ...1...
Wed May 24 18:46:53 CEST 2006
On Wednesday 24 May 2006 09:04, nando wrote:
> 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
>
Why don't you want events to be processed during your wait?
--
Benoit Minisini
More information about the User
mailing list