Thank you. I will use usleep(). That will be in the next beta/release.
Henry Rich
On 7/3/2018 5:20 PM, Xiao-Yong Jin wrote:
Use nanosleep(2) or usleep(3).
Both are available on darwin, linux, *BSD.
On Jul 3, 2018, at 3:57 PM, Henry Rich <[email protected]> wrote:
For non-Windows non-Mac the code calls a system function sleep() that takes an
integer argument in seconds. JE rounds the argument of 6!:3 to the nearest
second. There must be a better sleep() function but I don't know what it would
be.
If you defined delay without the "0, 6!:3 (10)#0.2 would delay 2 seconds.
Henry Rich
On 7/3/2018 4:43 PM, Raul Miller wrote:
I expect it to work ok on Windows, but not other systems.
6!:2 'delay 10#0.2'
0.000107
6!:2 'delay 1'
1.00001
JVERSION
Engine: j806/j64/darwin
Release: commercial/2017-11-06T10:20:33
Library: 8.06.09
Qt IDE: 1.6.1/5.6.3
Platform: Darwin 64
Installer: J806 install
InstallPath: /users/rauldmiller/applications/j64-806
Contact: www.jsoftware.com
Thanks,
---
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm