You could also use <cftimer>. M!ke
-----Original Message----- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 1:54 PM To: CF-Talk Subject: Re: Script timing? <cfset startTime = getTickCount() /> your code block <cfset endTime = getTickCount() /> <cfset total = endTime - startTime /> <cfoutput> your code ran in #total# ms </cfoutput> * disclaimer - i -think- it's measured in ms... :) ** disclaimer part deux - in MX, you can just do <cfoutput>your code ran in #endTime - startTime# ms </cfoutput> (no need for the <cfset total ....>) On 4/25/05, Damien McKenna <[EMAIL PROTECTED]> wrote: > > Is there any way to time how long portions of code take? I've got a > loop that seems to take forever and I want to see where the problem is. > Thanks. > > -- > Damien McKenna - Web Developer - [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > The Limu Company - http://www.thelimucompany.com/ > <http://www.thelimucompany.com/> - 407-804-1014 #include <stdjoke.h> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204333 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

