If I have 2 functions I want to know where function is fatster. Please tell me how to test speed of them.
Thank you for all post.
Printable View
If I have 2 functions I want to know where function is fatster. Please tell me how to test speed of them.
Thank you for all post.
GetTickCount() might help you.
Code:'In general section
Private Declare Function GetTickCount& Lib "kernel32" ()
Private Sub Form_Load()
'KPD-Team 1998
'URL: http://www.allapi.net/
'E-Mail: [email protected]
'Get the tickcount
ret& = GetTickCount&
MsgBox Str$(ret& / 60000) + " minutes."
End Sub
Check this links as well
http://www.thescripts.com/forum/thread204374.html
http://vbforums.com/showthread.php?t=18440
A search on the forum will give you more results. search for 'GetTickCount'.
Believe it or not, what I was remotely concerned with the speed of something I used a good ole fashioned stopwatch.
There are some addins for the VB IDE that assist you with performance in your apps. They show bottlenecks in particular. Try a google search.