[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua for Time Travel (!)
- From: "Joseph Manning" <manning@...>
- Date: Wed, 25 Jan 2017 13:40:32 +0000
On 2017-Jan-25 (Wed) at 13:29 (+0000), Gabríel Arthúr Pétursson wrote:
>> The os.clock function uses the 'clock' system call. On that particular
>> system you refer to, `clock_t`, the return value of clock, is defined
>> as a 32-bit integer.
>>
>> What you're seeing is that integer wrapping around due to overflow.
Gabriel,
Thanks for your very prompt and clear explanation
( even if it's disappointingly reasonable! ).
It's a little surprising that the upper limit for 'os.clock( )'
is so small, at least on a 32-bit computer. But good to know.
Joseph
------------------------------------------------------------------------
Joseph Manning / Computer Science / UCC Cork Ireland / manning@cs.ucc.ie
------------------------------------------------------------------------