efficiency with automatic timers
Posted: Sun Aug 30, 2009 3:45 am
Hi, i'm building a page that has several timers in it (all calculated down from a database that holds the finishing datetime)..
I need that whenever one of these timers reaches 00:00:00, a function will be called (already exists) that will add a given amount of hours.
my first thought was use a function at the top of the page, that will constantly check by loop every timer and call the restarting timer function whenever needed. My worries are that it may be a lot of work (on the page) that will eventually slow down the page etc.
if you have any other ideas or remarks as to how to implement this, please do
thank you
Edan
I need that whenever one of these timers reaches 00:00:00, a function will be called (already exists) that will add a given amount of hours.
my first thought was use a function at the top of the page, that will constantly check by loop every timer and call the restarting timer function whenever needed. My worries are that it may be a lot of work (on the page) that will eventually slow down the page etc.
if you have any other ideas or remarks as to how to implement this, please do
thank you
Edan