If you can afford full cpu loading, try,

foo=: 3 : 0
a=. 6!:1''
while. y> b=.a-~6!:1'' do. end.
y,b
)
   foo 0.001
0.001 0.00100398

Втр, 31 Май 2011, Ian Clark писал(а):
> I notice on my Mac that "Delay execution for y seconds" (3!:6 y)
> rounds its argument to whole seconds...
> 
>    timer '6!:3 ]0.49'
> 2.71606e_5
>    timer '6!:3 ]0.5'
> 1
>    timer '6!:3 ]2.49'
> 1.99996
>    timer '6!:3 ]2.5'
> 2.99993
> 
> Is this behaviour replicated on Windows or other non-Mac platforms? Is
> it a bug or a feature?
> 
> It would be nice to have a 0.1 sec delay, which I can't seem to get.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to