Results 1 to 4 of 4

Thread: TIMER

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 1999
    Posts
    33

    Post

    I need a timer ocx/vbx or code that loops every 1ms because the standard VB timer loops 1 every 33ms. How can i do this???

  2. #2

    Thread Starter
    Member
    Join Date
    Jul 1999
    Posts
    33

    Post

    If I am wrong and the timer does loop at 1MS then i would still like it to be faster (not using For i = 1 to 100 ect ect)

  3. #3
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    Post

    Although the Timer is not very accurate. I find it hard to believe that it is that inaccurate.

    I assume you have the interval set at 1ms.

    Your problem is probably that the code inside the timer routine takes longer than 1ms (maybe 33ms) to run therefore you are missing calls to the Timer routine.

    You could use the Tick-Count API in a self looping routine. This maybe faster???

    Steve.

  4. #4
    New Member
    Join Date
    Feb 1999
    Posts
    10

    Post

    What you may have to do is set a queue structure where information gets added to the queue every 1ms. Then write your code so that it is constantly striving to clear the queue. That may not help at all as it will still be slow, but it might.

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