Causes the current thread to sleep for the given number of milliseconds.

  <cfsleep time=ms>


This tag requires Lucee.  Not supported on Adobe ColdFusion, etc.

Attribute Reference

time numeric

The number of milliseconds to sleep for.

Sample code using the cfsleep tag

Dump the current time using a loop, delay 2 seconds each iteration.

<cfloop index='i' from='1' to='3'>
  <cfdump var='#timeFormat(now(), "HH:mm:ss")#'/>
  <cfsleep time='2000'/>

Fork me on GitHub