[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Measuring AFL Execution Times



PureBytes Links

Trading Reference Links

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
 
 
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___