How to store time shown by cftimer in a variable?
cfml, coldfusion, coldfusion-10, coldfusion-9
Solution
Use
<cfset var startTicks = GetTickCount() />
<!--- code to benchmark --->
<cfset var ticksTaken = GetTickCount() - startTicks />
for better control. Note that ticks are ms, and irrelevant unless diffing (the absolute value has no meaning).
Problem
I want to store the time taken by a code to execute in a coldfusion variable. There is a tag called cftimer that displays the time taken by a code to execute. Is there a way to store the time displayed by cftimer tag in a variable?