[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.clock() always return 0 on Archlinux (a Linode instance)
- From: Tony Finch <dot@...>
- Date: Tue, 27 Sep 2011 18:02:07 +0100
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.