Well, even a sleep routine would have to have some code running checking if it is time to wake up yet... even if it is optimized within CF itself.
Perhaps just write a do while routine... Check the time... set a variable. Loop through checking the time again and again until the desired time has passed. Don't think this would be a huge drain on the system. Probably take up a thread... but as long as all the users aren't sleeping with a thread it should be ok. Also... using the time allows for you to control the sleep time... using a loop for 10,000 times and you will find that the time it sleeps varies as to CF usage and the processor it is running on. hth Brian At 07:19 AM 11/8/02, you wrote: >I am writing a small utility that I send a bunch of stuff through an >outside process with <CFEXECUTE>. This process needs some time before I >allow my code to continue on to the next section of code. Is there such >a thing as <CFSLEEP timespan="10">? > >A really bad kludge would be to write a small loop statement that did >nothing but took time to process but that would be waist of processor >cycles. > >Any thoughts? > >Dave Adams >CFUG Ottawa > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm