Results 1 to 6 of 6

Thread: Can I do a better timer?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    10

    Unhappy

    Hi all!

    I need a timer for a multimedia application. The VB timer has not the time resolution I need, and it's periods are not very constants if there are user events.

    How can I do this? Which kind of ActiveX should I use? Has anybody tried something like this?

    Thanks in advanced,
    Javier R. Encinas

  2. #2
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  3. #3
    Member
    Join Date
    Jan 1999
    Location
    Longmont,CO
    Posts
    53

    Talking

    The April 2000 edition of Visual Basic Programmers Journal has an article on how to build high-precision timers in code. I was thinking of building an ActiveX component to do this as well. If you want to research the API calls:

    timeGetDevCaps
    timeBeginPeriod
    timeEndPeriod
    timeSetEvent
    timeKillEvent

    You can build higher precision timers with code.

    Let me know if you'd be interested in an ActiveX control that encapsulates this functionality and I'll send it to you when it's done.

    Regards,

    Dan McLeran
    [email protected]

  4. #4
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Check out the Common Controls Replacement Project http://www.mvps.org/ccrp/ They have precision multimedia timers (I use one for a multi-player game I'm writing).
    -Excalibur

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    10

    Smile Thanks All!


    Thank you very much all of you. It will work like a clock!

    Javier R Encinas
    [email protected]

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