Results 1 to 13 of 13

Thread: For help with timers - Your questions are answered

Threaded View

  1. #1

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Post For help with timers - Your questions are answered

    I have written a program for those who ask about timers. This program should dis-spell the illusions some have about timers. Such as don't use DoEvents, or that their events happen on the scheduled interval set on the timer in all cases.

    Look at the project and you will see exactly what happens with timers in three different cases.

    • With No code running in the timer
    • With Extended code running in the timer
    • With Extended code running with DoEvents in the timer


    The display shows the elapsed time (in milliseconds) since the timer was last called. Now as you start out all the timers will show that they are on schedule. if you select the run code option the timers will start to flutter with different elapsed times. If you select run code with DoEvents you will notice that the timers settle back down to their normal elapsed time schedule. Play with it to sooth your fear and misconceptions about timers.

    Hope this helps you with your timer code...

    TIMERS WERE NOT MEANT TO KEEP TIME OR TIME ANYTHING!!!!

    They just give you the luxury of interrupting code to check on events or set/check flags (basically).
    Attached Files Attached Files
    Last edited by randem; Aug 9th, 2006 at 12:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width