add timing logging to /tasks endpoint