I tend to use the gettickcount() method some others have suggested. Something that did fool me for a while though, is that such results can be made completely wrong by having debugging enabled. The particular culprit is "report execution times," which will cause UDF, custom tag, and CFC calls to have very significant overhead time. Merely hiding debug output with <cfsetting> does not help, you have to actually disable report execution times.
/kam -----Original Message----- From: Damien McKenna [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 11:47 AM To: CF-Talk Subject: Script timing? 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> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204503 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

