Need help with loop time/interrupt programming

Please post your unhappy code so we can see if we can fix it (we is the forum)