lua-users home
lua-l archive

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


On Fri, Nov 13, 2009 at 2:37 PM, spir <denis.spir@free.fr> wrote:
> Is there a builtin or a lib tool? If not, how do you do it?
> (googling brought no sensible info on the topic)

os.clock() is what you need - it's seconds since Lua started as a
floating-point number.