Add time measuring