Results 1 to 2 of 2

Thread: timer explanation

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283

    timer explanation

    is it true that if you start a timer at some point in a sub, the first tick of the timer cant occur while that sub is still running? that's the effect i'm getting and it's very annoying.

    how can i start a timer and have it be able to trigger events immediately? probably using threading or something, but i've never done that before....

    any ideas?

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    It is possible because timers create their own threads (i think).

    So if your timer interval is quite small and the calling sub is quite slow then, the timer might fire before the sub finishes. It would be very easy to set up.

    Open up the Help index and type "Timer class" in the search box. There's a load of stuff there to help you, it'd be quicker for you to read that than for us to explain it.
    I don't live here any more.

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