starting timing code