HIBERNATE with delay?

Previous topic - Next topic

ampos

Can we have HIBERNATE millisecs?

In my latest program, I have a delay of N seconds every now and then.

I would like to save energy inserting a HIBERNATE command, but then it will not return control to the user until he touches the screen.

Currntly I am using

Code (glbasic) Select
delay=6000
repeat
   sleep 100
   dec delay,100
   if mouseaxis(3)=1 then delay=0
until delay<0


Does sleep also save battery?