sleep

Causes the current thread to stop processing for a specified period of time.

sleep(duration) → returns void

sleep Argument Reference

duration
Required

Time, in milliseconds, to stop processing the current thread

Examples sample code invoking the sleep function

Outputs the current date/time, sleeps for 5 seconds, then outputs the current date/time again.

<cfscript>
    writeOutput(now());
    writeOutput("<br />");
    sleep(5000);
    writeOutput(now());
</cfscript>

Fork me on GitHub