I am building an application using periodical AJAX calls to update a servertime countdown clock. This clock is used to display current and remaining time in a online bidding proces. I have to use server time because of security issues.
The problem is, that when the clock 'runs' (countdown from 03:00 minutes), the CPU load of the browser increases on the client. After some time (30 seconds) the clock will start to skip every 3rd second and so on. If there is traffic (e.g. users are placing bids) this 'skipping' will become worse. The server-side script that is being called by AJAX does more than update the clock e.g. check for session validity, user inputs etc.
How can I have the server-side clock run at stable intervals without hick-ups using server time?
I have already experimented with the ajax.periodicalupdater veriables such as decay, frequency but no luck. Also upgraded to a faster server but no difference. I am using a VPS with PHP 5.2.5.
Start Free Trial