lua-users home
lua-l archive

Re: os.clock() always return 0 on Archlinux (a Linode instance)

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


Johnson Lin <arch.jslin@gmail.com> wrote:
> What might be causing this? I am really confused. :(
You want os.date. Like in C, os.clock returns the amount of time your
program has spent warming up the CPU, which is rarely useful to know.
Tony.
-- 
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Wight, Portland: East or southeast, 3 or 4. Smooth or slight, occasionally
moderate in Portland. Fog patches for a time. Moderate, occasionally very poor
for a time.

AltStyle によって変換されたページ (->オリジナル) /