Hello,
The reason for my mistake was that actual time
spent in some calls is much lower
than reported by the method presented in
UserKB.
This is so because the DebugVIew overhead. Often
outputting text to debugview takes
much more time than the function being
measured.
For example if you measure the time needed to
call Param() function 1000 times:
GetPerformanceCounter( 1 );
for( i = 0; i
< 1000; i++ )
{
x = Param("test", 1, 0, 100, 1
);
}
Title=""+GetPerformanceCounter(1)+"
milliseconds";
It will show up that it takes 5 milliseconds to call Param() 1000
times. So single call is actually 5 microseconds,
not 1 millisecond (1000 microseconds) as reported by the method
presented.
Best regards,
Tomasz
Janeczko
amibroker.com
----- Original Message -----
Sent: Monday, September 24, 2007 1:43
AM
Subject: Re: [amibroker] Measuring AFL
Execution Times
Hello,
Please ignore previous post.
I made mistake, the RESOLUTION is in
microseconds, not the UNIT.
The UNIT is millisecond but resolution is upto
0.001 millisecond = 1 microsecond.
Best regards,
Tomasz
Janeczko
amibroker.com