lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Perhaps a nicer solution would be to extend luaposix sleep to accept
> fractional values and call first posix sleep() for the integer part, then
> posix usleep() for the fractional part. However, you have to take care of
> how the new sleep function responds to signals.

Why not simply call usleep with t*1e6 ?