Skip to main content
May 20, 2010
Question

Coldfusion Timer Clock

  • May 20, 2010
  • 2 replies
  • 1214 views

I have a request to make 15 timers in Coldfusion so that a user can run 15 tests and set each test on its own timer and have it notify him through email when he needs to check the test and also email him when the test is finished. He wants to be able to input the times when he needs to be notified. Any ideas how to develop this application?

Thanks,

Tony

    This topic has been closed for replies.

    2 replies

    Inspiring
    May 21, 2010

    I'd be looking at writing one timer and using it 15 times instead of writing 15 timers.

    Inspiring
    May 20, 2010

    Which part of it are you stuck on?  How far have you got?

    --

    Adam

    May 20, 2010

    I dont know where to start.... Do I need to use something like this? I think this just times the page load speed.

    <!--- Setup timing test --->
    <cfset iterationCount = 3000>
    <!--- Time an empty loop with this many iterations --->
    <cfset tickBegin = GetTickCount()>
    <cfloop Index = i From = 1 To = #iterationCount#></cfloop>
    <cfset tickEnd = GetTickCount()>
    <cfset loopTime = tickEnd - tickBegin>

    <!--- Report --->
    <cfoutput>Loop time (#iterationCount# iterations) was: #loopTime#
        milliseconds</cfoutput>