Determines the differences between the results of GetTickCount at successive points of page processing.
GetTickCount()
This function is useful for timing CFML code segments or other page processing elements.
<!--- Setup timing test ---> <cfset iterationCount = 1000> <!--- Time an empty loop with this many iterations ---> <cfset tickBegin = GetTickCount()> <cfloop Index = i From = 1 To = #iterationCount#></cfloop> <cfset tickEnd = GetTickCount()> <cfset loopTime = tickEnd - tickBegin> <!--- Report ---> <cfoutput>Loop time (#iterationCount# iterations) was: #loopTime# milliseconds</cfoutput>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt1110.htm
Comments
Bjorno said on Dec 19, 2003 at 11:34 AM :