Add timing code.