lua-users home
lua-l archive

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


On Wed, 13 Oct 2010 14:26:26 -0300
Gabriel Duarte <confusosk8@gmail.com> wrote:

> Try out
> 
> function sleep(length)
>     local start = os.clock()
> 
>     while os.clock() - start < length do end
> end
> 

well, that brings my CPU to 99% ;)

startx