-
1. Re: Odd timer behavior
adrian.brock Mar 17, 2002 2:12 AM (in response to guy_rouillier)Can you post your code.
Looks to me like you've got some synchronization
between the two notifications? Both look like they are
on a 34 sec cycle.
Regards,
Adrian -
2. Re: Odd timer behavior
guy_rouillier Mar 17, 2002 11:21 PM (in response to guy_rouillier)The synchronization is in the timer itself. It serializes all events, and only executes one at a time. My handler consists of two statements:
print
sleep 15 seconds
So event 1 prints and sleeps for 15 seconds, then event 2 **should** print and sleep for 15 seconds. So you should see a periodicity of 30 seconds. But what you are seeing, and what was my original question, is that when event 1 finishes sleeping, event 2 waits an additional 4 seconds before it prints. The repeat time for event 2 is 4 seconds, but that should have been absorbed when event 1 was sleeping. That is how event 1 is working; you'll notice that event 1 always prints immediately after event 2 has finished sleeping for 15 seconds; event 1 does NOT wait its repeat time, which is 10 seconds. So how come event 2 waits?