how to find the execution time for partcular code blocks in ColdFusion
For finding the execution time of particular code blocks, we can use the ColdFusion function GetTickCount(). Without enabling the debugging information in the Administrator, we ca use the method GetTickCount() for finding the time used for executing a partcular code block.
For example,
<cfset t1=GetTickCount()>
code block begins..
-------------------------------------
code block ends.
<cfset t2= GetTickCount()>
<cfset total=t2-t1>
<cfoutput> Time taken for execution was #total#</cfoutput>
For example,
<cfset t1=GetTickCount()>
code block begins..
-------------------------------------
code block ends.
<cfset t2= GetTickCount()>
<cfset total=t2-t1>
<cfoutput> Time taken for execution was #total#</cfoutput>
Comments
Post a Comment