improved timer accuracy

Now the timer will adjust itself to meet the timed goal within the constraints of the setTimeout cap.
There is still some problem where RT is being recorded as 4-6 ms late consistently.