Another challenge in solving problems with ColdFusion code entails understanding how long some piece or section of code takes to execute. Fortunately, ColdFusion offers several tools to help identify code timing:
Server monitor profiling feature
One of the oldest ways to identify code timing is to use the getTickcount() function, which returns a number of milliseconds since a point in the past. This function can be used to compare the count of milliseconds at one point to the count at a later point.
However, it can be simpler to use a similar, built-in feature of the <cftrace> tag. When this tag executes, it displays the elapsed time since a previous <cftrace>