|
-
Feb 15th, 2001, 01:12 PM
#1
Thread Starter
Hyperactive Member
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
-
Feb 15th, 2001, 01:16 PM
#2
transcendental analytic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|