sync timer code