Code for measuring timing.