timer performance optimization