[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: Johnson Lin <arch.jslin@...>
- Date: Fri, 30 Sep 2011 14:14:19 +0800
On Fri, Sep 30, 2011 at 2:01 PM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> On Fri, Sep 30, 2011 at 12:03 AM, Stuart P. Bentley
> <stuart@testtrack4.com> wrote:
>>> lua -e "print(os.clock(), os.time())"
>
> Hard to say from such a short run; the clincher would be if you put a
> sleep before the print. Windows behaviour is to give total program
> time, not total time not sleeping.
>
> steve d.
I think Stuart wanted to say was those two functions have clear
distinct return values (time since epoch and time since program
starts), and have different granularity. :)
Johnson