Changed to use SystemClock and get the current milliseconds, now timer is very accurate with almost zero delay