Results 1 to 2 of 2

Thread: Set/Kill Timer vs. VB's intristic Timer

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458

    Question

    Hi,
    Is it a good practice to always substitute intristic Timer with the API's version (SetTimer/KillTimer)?

    How much more efficient is it? What do you guys think?

    Thanks
    Thanks

    Tomexx.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Not much efficience you gain, Timers are controls though and they consume some resources, they are inaccurate and interval can't be set lower than 53 ms and higher (actually you can but not with actual effect) than 2^16 milliseconds that is about 65 seconds. So yes i prefer and recommend Settimer, but the fact that timers are easy to use and has the about same efficiency, they aren't bad in any ways if you just need to use them about each 5'th second.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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