Newbie - Timers and Send
Dar Scott
dsc at swcp.com
Mon Dec 8 14:09:03 EST 2003
On Monday, December 8, 2003, at 12:03 PM, Stephen King wrote:
> The way I got around it was to 'Send' more often than I needed (every
> 10
> mSec in my case), then check the elapsed time between 'Send's against
> the
> system clock to update my timer - Using 'Send' a bit like an
> interrupt. This
> method worked fine, accurate to 0.01 seconds with no noticable
> overhead on
> processing.
I agree. Always go to the clock for accurate timing. An alternative
to the above procedure would be to adjust the delay specified in the
send to target the end of the next period.
Dar Scott
More information about the use-livecode
mailing list