Results 1 to 6 of 6

Thread: API Timers

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,633

    API Timers

    This example show you how to create a timer, without using the timer control on a form but with using API commands.
    This timer can be used in classes, in DLL's, and will work fine. No need for a form with a timer on it.
    This timer can also have an interval higher than 64000ms.

    Woka
    Attached Files Attached Files

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: API Timers

    Rock on. Will play around with it.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3
    New Member riffz's Avatar
    Join Date
    Apr 2007
    Location
    Canada
    Posts
    9

    Re: API Timers

    Can you tell me if using this API timer would make a program run more smoothly, even if the time intervals were available using the timer object?

  4. #4

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,633

    Re: API Timers

    Smoother than what????
    Smoother than the timer object you mean?

    Probably, more than likely.

    Do a bench test.

    The timer object should really have any impact on your apps performance (within reason) and bottle necks that slow the PC down are either down to 2 things...
    1) Rubbish code in timer event
    2) Huge procedures called from timer event that take ages and "hang" your app.

    The timer object has minimal impact.

    Woka

  5. #5
    New Member riffz's Avatar
    Join Date
    Apr 2007
    Location
    Canada
    Posts
    9

    Re: API Timers

    Alright then thanks.

  6. #6
    New Member
    Join Date
    Jan 2008
    Posts
    4

    Re: API Timers

    thank you nice code

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