Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getting time measurment for run time code

10 views
Skip to first unread message

thread

unread,
Mar 5, 2011, 3:40:59 AM3/5/11
to
Hi
i want to check several of functions to see what is the fastest,
is it posible via vb functionalities to get this information?

ralph

unread,
Mar 5, 2011, 8:08:35 AM3/5/11
to
On Sat, 5 Mar 2011 00:40:59 -0800 (PST), thread <yani...@gmail.com>
wrote:

>Hi
>i want to check several of functions to see what is the fastest,
>is it posible via vb functionalities to get this information?

Here are two examples:
http://stackoverflow.com/questions/766596/whats-the-best-way-of-timing-functions-measuring-performance-in-vb6
<contains link to>
http://support.microsoft.com/kb/172338

Not necessary the best just the first two that came up with a Google
search. <g>

These methods output to the Debug Window which means you need to run
the run the instrumentation in the VBIDE. You can change them to
output to a file, or to on outside viewer.

Check out the API calls DebugOutputString() and DebugBreak(), then
download a DebugViewer
(http://technet.microsoft.com/en-us/sysinternals/bb896647)

Keep in mind that all methods of measuring are subject to a Heisenberg
effect. Just instrumenting a test can effect results, and results are
more qualitative than quantitative. <g>

-ralph

0 new messages