It is almost never safe to assume your code is perfect
J. Landman Gay
jacque at hyperactivesw.com
Sat Oct 5 22:55:43 EDT 2013
On 10/5/13 9:30 PM, Kay C Lan wrote:
> On Fri, Oct 4, 2013 at 10:48 PM, Geoff Canyon <gcanyon at gmail.com> wrote:
>> The switch to send in (1 - (the long seconds mod 1)) seconds was a
>> very unexpected and exceedingly clever hack.
> Sorry, I still don't get it.
> In the msg box:
> the long seconds mod 1
> always returns 0 --seems right.
I get zero and the fraction, for example: 0.034014
So the clock uses that fraction to account for script time, and sends
the next update exactly on the whole second.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the Use-livecode