Countdown HH:MM:SS
Scott Rossi
scott at tactilemedia.com
Wed Jul 20 18:20:37 EDT 2011
Recently, Nonsanity wrote:
> I wouldn't rely on the send in time structure to actually fire every second.
> It's going to slip over time as the computer takes periodic spikes of use.
> If you want New Years Eve accuracy of the final countdown, you should
> probably re-calculate the delta based on the current time continuously.
Agreed. A few years back, Geoff Canyon came up with the following which has
been reliable for me:
send "someMsg" to someObj in (1 - (the long seconds mod 1)) seconds
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
More information about the use-livecode
mailing list