summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tempo.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tempo.js b/tempo.js
index db8c039..04c1071 100644
--- a/tempo.js
+++ b/tempo.js
@@ -29,7 +29,8 @@ function updateTime() {
function startTempo() {
updateTime();
- setInterval(updateTime, 1000);
+ setTimeout(function() {updateTime(); setInterval(updateTime, 1000)},
+ 1000 - new Date().getTime() % 1000);
}
window.onload = startTempo;