added measuring time