codice:
var mioTimer = new Timer();
mioTimer.intervallo = setInterval(function() {
  mioTimer.aggiorna();
}, 1000);