|
-
Nov 23rd, 1999, 08:16 AM
#1
Thread Starter
Member
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???
-
Nov 23rd, 1999, 08:21 AM
#2
Thread Starter
Member
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)
-
Nov 23rd, 1999, 09:30 AM
#3
Lively Member
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.
-
Nov 23rd, 1999, 11:25 AM
#4
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|