Optimised tiny timeouts

Since JavaScript imposes a minimum of 4 milleseconds
Optimised the run queue

To check time less frequently and to use the new timeout function.