GLBasic forum

Main forum => Bug Reports => Topic started by: Marmor on 2011-Feb-01

Title: webos sleep < 1000 not working ?
Post by: Marmor on 2011-Feb-01
Code (glbasic) Select

FOR r= 1 TO 10
   blub =GETTIMERALL()   
   SLEEP 300
   blab = GETTIMERALL()
   blib = blab-blub
   PRINT blib,1,3 +(r*10)
NEXT
SHOWSCREEN
MOUSEWAIT


show me
0
0
0
0
1
0
0
1
0
1



less as 1000 ms for sleep give me not the right time for the delay
you also ?

edited   !!
Title: Re: webos sleep < 1000 not working ?
Post by: MrTAToad on 2011-Feb-01
What value do you get ?
Title: Re: webos sleep < 1000 not working ?
Post by: Slydog on 2011-Feb-01
Maybe 'GETTIMERALL()' doesn't get updated until a 'SHOWSCREEN' maybe?
But then why would you ever get a 1 value?
You could try putting a 'SHOWSCREEN' right after the 'SLEEP' command to try.
Title: Re: webos sleep < 1000 not working ?
Post by: Marmor on 2011-Feb-01
gettimer is updated with showscreen .

sample works fine in win !!
Title: Re: webos sleep < 1000 not working ?
Post by: MrTAToad on 2011-Feb-01
Does seem like a SLEEP problem...
Title: Re: webos sleep < 1000 not working ?
Post by: Kitty Hello on 2011-Feb-02
FOR i%=0 to 30
   SLEEP 300
NEXT

Will it sleep for 10 seconds?
Title: Re: webos sleep < 1000 not working ?
Post by: Marmor on 2011-Feb-02
can anyone send me a ipk for this because i deinstalled the uberkernel but have the same error
Title: Re: webos sleep < 1000 not working ?
Post by: Kitty Hello on 2011-Feb-03
try this, please.

[attachment deleted by admin]
Title: Re: webos sleep < 1000 not working ?
Post by: Marmor on 2011-Feb-03
thx gernot !
I killed all Apps and restored  the Palm
It shows me there is a bug  with 20 ms at the first start
Second start 13 ms  and so on .

maybe ocean can test also ... ocean make it so !! please.....


Title: Re: webos sleep < 1000 not working ?
Post by: Kitty Hello on 2011-Feb-03
ok, sleep is not sleeping then. :/
Thank you.
Title: Re: webos sleep < 1000 not working ?
Post by: Marmor on 2011-Feb-03
before u search  the bug please wait for oceans answer because he say in the chat  the sleep command  works for him
Title: Re: webos sleep < 1000 not working ?
Post by: Kitty Hello on 2011-Feb-04
awesome investigation! Many thanks for this detail.