lua-users home
lua-l archive

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


On 15/08/2011 15.25, Igor Medeiros wrote:
Hi,


There is a library that provides a sleep function in milliseconds? I
tried using the posix.sleep() function but it only wait seconds instead
miliseconds.

Thanks.


Warning: slighlty OT question.

Out of curiosity, and relating to modern PC architectures, are there hardware limits to the availability of an high resolution timer at software level, or all this diversity is just a problem of operating system or API idiosyncrasies?

In other words: have OSs a real problem in providing an high resolution (milli/micro/nano second) sleep function because of hardware lacking the required functionality?

TIA
-- Lorenzo