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" <[EMAIL PROTECTED]> To: <[email protected]> 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 > > > > >
