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

Re: [amibroker] Problem with resetting the getperformancecounter()



PureBytes Links

Trading Reference Links

Reset works per-execution (it is not global), so it will work in that execution when you actuall call
GetPerformanceCounter(TRUE). During subsequent executions you will get
time from boot.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "itmwh" <toxutao@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, February 05, 2007 1:03 PM
Subject: [amibroker] Problem with resetting the getperformancecounter()


> Hi, I am confused why the following codes fails to reset the 
> getperformancecounter()?  Thanks for any help  / Tom
> 
> ===========================================================
> 
> reset=ParamTrigger("reset time counter","Click to reset");
> if(reset)
> 
>   {GetPerformanceCounter(True); }
> 
> 
>  elapsed=GetPerformanceCounter()/1000; 
>   RequestTimedRefresh(2);
> 
> Title=
> "\nElapsed = "+ elapsed;
> 
> 
> 
> 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
> 
> 
> 
> 
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.26/670 - Release Date: 2/5/2007 2:04 PM