why not just use
<CFSET Start=GetTickCount()>
<CFSET Time=60000>
<cfloop condition="GetTickCount() LT start + Time">
</cfloop>
much shorter and simpler. Will still eat up your CPU though.
----- Original Message -----
From: "Simon Horwith" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2000 4:01 PM
Subject: RE: Delay
> slight fix on my end. use MOD to avoid executing on every pass, and GTE
> because you may exceed the desired delay by a few millisecs.:
>
> THIS SHOULD CREATE A ONE MINUTE TIMER!!
> <CFSET tickBegin = GetTickCount()>
> <CFLOOP FROM="1" TO = "1000000000000" index = "index">
> <CFIF index MOD 100 IS 0>
> <CFSET tickEnd = GetTickCount()>
> <CFIF tickEnd - tickBegin GTE 60000>
> <CFBREAK>
> </CFIF>
> </CFIF>
> </CFLOOP>
>
> ~Simon
>
>
>
>
> -----Original Message-----
> From: Mark Ireland [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 25, 2000 9:14 PM
> To: CF-Talk
> Subject: Re: Delay
>
>
>
>
> There really should be a 'pause' tag that does not use much cpu.
>
> I doubt that I am the first to say this but I will
> repeat myself on the allaire forums.
>
>
>
>
>
> At 10:06 PM 25/09/00 -0300, you wrote:
> >I use a CFLOOP to create a delay.
> >
> ><CFLOOP Index="Timer" From="1" to="15000" STEP="1">
> ></cfloop>
> >
> >There must be a better way, but I haven't found it yet.
> >
> >
> >----- Original Message -----
> >From: "Parker, Kevin" <[EMAIL PROTECTED]>
> >To: "CF-Talk" <[EMAIL PROTECTED]>
>
> >Sent: Monday, September 25, 2000 9:58 PM
> >Subject: Delay
> >
> >
> >> Can anyone help please?
> >>
> >> I'm trying to set up a delay in page without using a meta tag.
> >>
> >> I've tried this but it relocates straight way. Do I need to tell it
that
> >the
> >> values are specifically dates? TIA!
> >>
> >> <!--- Create a 2 second delay --->
> >>
> >> <CFSET Beginning = Now()>
> >> <CFSET Ending = Now()>
> >> <CFSET Difference = #DateDiff( "s", Beginning, Ending )#>
> >> <CFLOOP condition="Difference LT 2">
> >> <CFSET Ending = Now()>
> >> <CFSET Difference = #DateDiff( "s", Beginning, Ending )#>
> >> </CFLOOP>
> >>
> >> <!--- Relocate to the menu page --->
> >>
> >> <cflocation url="test_id.cfm" addtoken="No">
> >>
> >>
> >>
> >>
> >> ********************************
> >> Kevin Parker
> >> Service and Communication
> >> WorkCover Corporation
> >>
> >> [EMAIL PROTECTED]
> >>
> >> ph: +61 8 82332548
> >> fax: +61 8 82332000
> >> ********************************
> >>
> >>
> >>
> >>
> >>
>
>***************************************************************************
> *
> >> This e-mail is intended for the use of the addressee only. It may
contain
> >> information that is protected by legislated confidentiality and/or is
> >> legally privileged. If you are not the intended recipient you are
> >prohibited
> >> from disseminating, distributing or copying this e-mail. Any opinion
> >> expressed in this e-mail may not necessarily be that of the WorkCover
> >> Corporation of South Australia. Although precautions have been taken,
the
> >> sender cannot warrant that this e-mail or any files transmitted with it
> >are
> >> free of viruses or any other defect.
> >> If you have received this e-mail in error, please notify the sender
> >> immediately by return e-mail and destroy the original e-mail and any
> >copies.
> >>
>
>***************************************************************************
> *
> >>
> --------------------------------------------------------------------------
> >----
> >> Archives: http://www.mail-archive.com/[email protected]/
> >> To Unsubscribe visit
> >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
or
> >send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> >the body.
> >
>
>---------------------------------------------------------------------------
> ---
> >Archives: http://www.mail-archive.com/[email protected]/
> >To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> >
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.