Sometimes you want to see how long something takes to complete.
Here is a very simple way of finding out how long a page takes to complete using GetTickCount() Function.
Place this at the top of your code.
<cfset tickBegin = GetTickcount()>
Then paste this at the bottom of your code.
-
<cfset tickEnd = GetTickcount()>
-
<cfset totaltime = tickEnd - tickBegin>
-
<!---Turn it into seconds --->
-
<cfset totaltime = totaltime / 1000>
-
<cfoutput>
-
How Many Seconds it took: #totaltime#
-
<!---Turn it into Minutes --->
-
<cfset totaltime = totaltime / 60>
-
How Many Minutes it took: #totaltime#
-
<!---Turn it into Hours --->
-
<cfset totaltime = totaltime / 60>
-
How Many hours it took: #totaltime#
-
</cfoutput>