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>


   

Comments

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms