javascript forum,
I'm running a timer in my program and want to perform something at 10
second increments using the following code.
I display the time and can see 10.0, 20.0 etc. show up but it only gets caught
once in a while. I have tried every suggestion on the internet with no luck.
Any Suggestions?
jerdonald
I'm running a timer in my program and want to perform something at 10
second increments using the following code.
JavaScript:
function timer()
{
current = (+new Date() - startTime) + runningTime;
seconds = ((current)/1000);
minutes = Math.floor((current)/60000)%60;
if(seconds%10 == 0)
{
ex+=1; setenabled();
}
} // end function inBoxTimer()
I display the time and can see 10.0, 20.0 etc. show up but it only gets caught
once in a while. I have tried every suggestion on the internet with no luck.
Any Suggestions?
jerdonald
Last edited by a moderator: