Hello!
I made the clock by using non-blocking algorhythm (send the specific message to object and it execute specific handle after specific delay = 1 sec).
Clock is working, but during one minute apears a delay about 0.5 sec. And it's increasing! Why is it so?
Using non-blocking algorhythm for clock
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10057
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Using non-blocking algorhythm for clock
Timers generally fire on first available idle after expiration. What is the rest of your app doing during the timer interval?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Using non-blocking algorhythm for clock
Hi.
I have not seen your code, but perhaps search for "Accurate timer" in these forums. This suggests reading one or more of the system times, instead of starting and maintaining a counter. Maybe something like that is tying up your app.
Craig Newman
I have not seen your code, but perhaps search for "Accurate timer" in these forums. This suggests reading one or more of the system times, instead of starting and maintaining a counter. Maybe something like that is tying up your app.
Craig Newman
Re: Using non-blocking algorhythm for clock
FourthWorld, my app is doing nothing yet (and delay is already apears). But what will be if i add some program code to operate some objects? My clock will "swim" and delay becomes biger?