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

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



PureBytes Links

Trading Reference Links

Hello,

Exactly, always call GetPerformacenCounter twice:
first to read the "starting" time, then to read the "ending" time.
Subtracting the results will give you time between calls.
There are examples in the read me.

Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message ----- 
From: "JD Fagan" <jd.fagan@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, June 13, 2007 7:11 PM
Subject: [amibroker] Re: GetPerformanceCounter() on WIN XP - Duo Core CPU


> 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
> 
> 
> 
> 
> 


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/