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

[amibroker] Re: GetPerformanceCounter() on WIN XP - Duo Core CPU



PureBytes Links

Trading Reference Links

It works for me on my Duo Core CPU machine.  I believe this function
was designed to work by calling it at least twice (first param True,
subsequent False).  The line GetPerformanceCounter(True) should be
used at time you want to start counting since it will reset the
counter value to 0.  Then, just call GetPerformanceCounter() without
any params (defaults to False) to get reading of counter since it was
last reset.

JD

--- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>
> The GetPerformanceCounter() function has a problem with Duo Core
CPUs due to Windows issues, as stated by Tomasz, on help files.
> 
> I installed the Windows recommended hotfix, but the function still
does not work properly.
> 
> The readings are correct if I use GetPerformanceCounter(True) every
time, but if I use "False" as the argument, the following reading is a
very large (incorrect) number.
> 
> Anyone else experience this?
> 
> Ara
>




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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/