improve timer performance