home *** CD-ROM | disk | FTP | other *** search
- The SimpleTimer demo demonstrates the TSimpleTimer class. The TTimer demo
- is provided for comparison.
-
- Two simple timers are started, and they write to a listbox at specific intervals.
-
- You may experience that a timer sometimes fails to fire. This is not a bug.
- Windows discards WM_TIMER messages if it's too busy processing other messages.
- The same happens if you use TTimer. For comparison I made the same demo using two
- TTimer objects. See for yourself.
-
- Here's how to see the timer events get lost: Set Timer 1 and Timer 2 to a small
- interval (like 50 millisecs.). Start both timers. For each message from Timer 1
- there should now be a message from Timer 2 immediately after (the messages are
- added to the listbox). But sometimes a message gets lost and the listbox shows two
- concurrent messages from the same timer.
-
- This is more likely to happen the smaller the timer intervals are. The problem is
- less pronounced in Win2000 and XP, as they are better at multitasking.
-
-