Jump to content

AdlibEnable vs _Timer_SetTimer


 Share

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...