Adds timing code