Change the way with interrupt

Change the way that we do time increment. Now the function is out of
interrupt service. We only set action bit for the main "second"
interrupt and do the actual job in the main() loop.