[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <firstname.lastname@example.org> 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.
f.anthony.n.finch <email@example.com> 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.