void timer_handler() { tick++; if(tick==TICKS_PER_SECOND) { //printf("%d seconds passed\n",time); tick=0; time++; }