function Chrono(g){var c=null,f=0,e=0,d=0,b=0,a="",h=g;this.getHours=function(){return f};this.getMinutes=function(){return e};this.getSecondes=function(){return d};this.getTotalSecondes=function(){return b};this.getDateStart=function(){return c};this.start=function(){if(a==""){c=new Date;a=setInterval(this.update,1e3)}};this.update=function(){b=Math.round((new Date-c)/1e3);var a=secondsToTime(b);f=a.h;e=a.m;d=a.s;g(f,e,d)};this.stop=function(){if(a!=""){clearInterval(a);a=""}}}
