webos sleep < 1000 not working ?

Previous topic - Next topic

Marmor

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   !!

MrTAToad


Slydog

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.
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Marmor

gettimer is updated with showscreen .

sample works fine in win !!

MrTAToad

Does seem like a SLEEP problem...

Kitty Hello

FOR i%=0 to 30
   SLEEP 300
NEXT

Will it sleep for 10 seconds?

Marmor

can anyone send me a ipk for this because i deinstalled the uberkernel but have the same error

Kitty Hello

try this, please.

[attachment deleted by admin]

Marmor

#8
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.....



Kitty Hello

ok, sleep is not sleeping then. :/
Thank you.

Marmor

before u search  the bug please wait for oceans answer because he say in the chat  the sleep command  works for him

Kitty Hello

awesome investigation! Many thanks for this detail.