Murga-Projects Forums
murgaLua.sleep - Printable Version

+- Murga-Projects Forums (
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: murgaLua.sleep (/showthread.php?tid=331)

murgaLua.sleep - asafp - 07-18-2008 10:02 AM

On WinDoh!s, I get "[string "murgaLua"]:172: attempt to call field 'sleepMilliseconds' (a nil value)"

On Linux, it seems to work, but murgaLua.sleep(7) seems to sleep for 7 seconds and not 7 milliseconds as documented.



Sleeps for the specified number of miliseconds without taxing the system.

RE: murgaLua.sleep - JohnMurga - 07-18-2008 07:34 PM

Which version are you using ?

There was a regression, but I thought it was fixed in recent builds.

John de Murga

RE: murgaLua.sleep - asafp - 07-18-2008 10:05 PM

Linux version 0.6.6.
Windows 0.6.0

RE: murgaLua.sleep - asafp - 07-19-2008 04:51 AM

It does work with 0.6.8 downloaded from

RE: murgaLua.sleep - asafp - 07-19-2008 09:58 AM

murgaLua.getHostOsName() returns "linuxStatic" on Linux.

Documentation states 'Returns the OS murgaLua was build for, currently one of "linux", "windows" or "macos"'.

RE: murgaLua.sleep - asafp - 07-20-2008 07:14 AM

alien.platform serves the same purpose, but it yields 'linux' and murgaLua.getHostOsName() yields 'linuxStatic'.