add time measuring