add timing handler