lua-users home
lua-l archive

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


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