Excellant! - Joe On Thu, Mar 27, 2008 at 12:02 PM, Dave Crozier <[EMAIL PROTECTED]> wrote:
> Joe, > You need a thread safe timer. There is one on my website including C++ > source code if you need it. > > www.replacement-software.co.uk/vfp/cppTimer.zip > > Also look at my post earlier today under "GetFile() Window Location" where > I > use API calls to generate an unstoppable timer. I haven't had time to > generate the code for the "unmangled timer" as of yet but will do over the > next few days and post it onto my blog with a writeup. Meanwhile take a > look > at the code where you can bind the timer to any windows event. > > www.replacement-Software.co.uk/vfp/VFP_Dialog_Mover.zip<http://www.replacement-software.co.uk/vfp/VFP_Dialog_Mover.zip> > > The basics for the timer were gainded off Herman Tan's blog at: > > http://hermantan.blogspot.com/ > > Scroll down and look at the section marked "A more reliable timer". > > Also there is a hires timer at: > > http://fox.wikis.com/wc.dll?Wiki~csnwHighResTimer~VFP > > Hope this helps. > > Dave Crozier > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Joe Yoder > Sent: 27 March 2008 15:43 > To: [email protected] > Subject: Measuring short time periods in VFP > > I have a server that is having problems relaying mail over an EVDO link to > the SMTPout.secureserver.net <http://smtpout.secureserver.net/> mail > server at godaddy.com. I produced a > report from two weeks worth of log files that shows days without any > errors > as well as one day where in about 4.5 hours I had 170 errors. The errors > are from winsock either 10060 or 11001. > > I am writing code to continuously log connection attempts to the godaddy > server from machines at several different sites to see if the EVDO link is > causing the problem. > > I want my code to report the length of time it takes in each stage of the > connection process as well as whether or not the attempt was a success. I > thought I would start a timer when the the connection is initiated and > record the value from the timer each time there is a state change from the > Winsock control but I can't find a way to access the count within the > timer. > > Is there a way to get accurate sub second time measurment in VFP? Other > suggestions? > > TIA - Joe Yoder > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

