Displays execution time for a specified section of
CFML code. ColdFusion MX displays the timing information
along with any output produced by the timed code.
<cftimer>
cftimer() {}
debug
inline
outline
comment
debug
<cftimer label="Nap time" type="inline">
Begin some long running process ...
<cfset sleep(2000)>
done.
</cftimer>
Expected Result: The time elapsed while executing the code inside the <cftimer> block should be displayed inline.
cftimer(label = "Nap time", type="outline"){
writeoutput("Begin some long running process ... ");
sleep(2000);
writeoutput("done.");
}
Expected Result: The time elapsed while executing the code inside the cftimer block should be displayed in the output with an outline around any output generated within the cftimer call..
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.