ACS Posted March 9, 2009 Share Posted March 9, 2009 I'm wondering which function is better to use: AdlibEnable or the UDF _Timer_SetTimer. It seems to me the main difference is that AdlibEnable is only for a single timer, whereas with the UDF you can initiate multiple timers. Since I only need one timer, does one function provide an advantage over the other? I plan to call the function every second, so I can accurately keep up with the system clock. Link to comment Share on other sites More sharing options...
Authenticity Posted March 9, 2009 Share Posted March 9, 2009 In your case I'd go with the embedded function AdlibEnable. Link to comment Share on other sites More sharing options...
ACS Posted March 9, 2009 Author Share Posted March 9, 2009 Any particular (technical) reason you chose that? Link to comment Share on other sites More sharing options...
Authenticity Posted March 9, 2009 Share Posted March 9, 2009 Technically, yes, I don't see any reason for overhead. But it's depended on your needs. If you need to differentiate between multiple timers ID then it makes sense to use _Timer_SetTimer(), even if you just use one timer but need to attach it to a window or the parameters it passes to your function then yes. If you don't need neither, like multiple timers or the parameters then I see no reason to use it over using EnableAdlib(). Link to comment Share on other sites More sharing options...
ACS Posted March 10, 2009 Author Share Posted March 10, 2009 Ok, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now